My first idea would be to use FindWindow and SendMessage APIs to get the hWnd of the message box and then use WM_CLOSE to close it. However it looks like the message box HAS to be either SystemModal or ApplicationModal so the code to close the MsgBox couldn't run until the message box was closed.
I'm sure someone else will prove me wrong though.....
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.