04-28-2006 02:57 AM - edited 04-28-2006 02:57 AM
Message Edited by hmuehlbacher on 04-28-2006 03:03 AM
04-29-2006 05:16 PM
You can send a WM_Quit message to the window if you know its name, but I don't think that would work with an error message. If you want to try it, you can try searching the site for a collection of windows VI called winutil (or winutil32 or something similar) which include a VI which does this just that.
Another option is to simulate a mouse click or a keyboard click, which can be done by calling the mouse_event or keybd_event functions, both of which have been demonstrated elsewhere on this site. The trick would be knowing where and when to do this.
The real quesiton would be why close the error messages. Error messages are supposed to alert users to errors. They are not designed to be dismissed automatically by unrelated programs.
05-02-2006 03:40 AM
05-02-2006 02:43 PM