Intercept a windows msgbox
Posted on 2000-05-15
I'm building a simple app that uses a shell statement to compact and repair an access database. I want this app to run in the middle of the night. Everything works with the exception that when access is done repairing the database it raises a msgbox stating that it is finished repairing the database. You have to click the ok button on the msgbox in order for access to begin compacting the database. I'm not familiar with using handles to get hold of the window but I was thinking this might be the way. Is this correct? Any help on sending a message to that window, (say, send the enter key to the msgbox) would be very helpful. Please include code in response. The repair time is variable and kind of time intensive so I have to check for that message say every thirty second or even sixty seconds. Thanks for any help.