Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a custom application running on an unattended Windows Vista box. This application run various SQL commands and does standard maintenance.

Whenever a message box is displayed, it "freezes" the application causing major issues. A simple click of the OK button clears the message box and the application continues on it's own.

Is there a registry hack or some other type of fix that I can implement that either disables the message box or automatically closes it?

share|improve this question

You could look into some of the windows scripting tools that can script the mouse click for you.

Something like this maybe:

share|improve this answer
Or AutoHotkey. It includes a recorder as well as a tool for associating any window with its source. – boot13 Aug 14 '10 at 5:45

AFAIK, the only "solution" is to gain access to the source code of the application and change the code. The behaviour is prevalent in apps which use a single thread for all tasks. When there is a single thread, which is busy processing the request, any other tasks (including UI updates) will take a back seat and will not get processed.

share|improve this answer
Thanks for the quick response. This message box isn't coming from the application, but from Vista itself. The computer contains a special PCI card that is working just fine, but Visa for some reason doesn't think so. That's the reason I want to disable the message box. Thanks. – Richard M Aug 13 '10 at 19:35
UPDATE: The vendor updated the client software so the error box no longer appears. Thanks to everyone for you help. – Richard M Aug 27 '10 at 14:03
Good to hear @Richard. – Sathya Aug 27 '10 at 14:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.