Link to home
Create AccountLog in
Avatar of oconnork00
oconnork00Flag for United States of America

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:User generated image
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
Avatar of Martin Liss
Martin Liss
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of oconnork00

ASKER

this was coded inside ubotstudio which is a C interpreter I believe.
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.