oconnork00
asked on
Close an error box automatically
Hi all,
Occasionally a piece of software encounters a problem where by it can't load a website. As a consequence an error box like this one appears:
Because I cant watch this the whole time, is it possible to use VBS to click "OK" or close this type of box down?
Until I click ok the software freezes which means I have to be watching it regularly to catch them. If possible a VBS monitoring script would be ideal.
Thanks in advance for your assistance.
Occasionally a piece of software encounters a problem where by it can't load a website. As a consequence an error box like this one appears:
Because I cant watch this the whole time, is it possible to use VBS to click "OK" or close this type of box down?
Until I click ok the software freezes which means I have to be watching it regularly to catch them. If possible a VBS monitoring script would be ideal.
Thanks in advance for your assistance.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Would a VBS script work in a fashion that it could detect the text inside that box and if it exists to close it?
I have VB6 code that will read the MsgBox and display the text in the Immediate Window. I can post the code and/or attach the VB6 project if that will help. Once you have that code it probably would be too hard to Google for code to close the MsgBox.
ASKER