Jump to content

automatically click OK to close a dialog box


keeper
 Share

Recommended Posts

Hi
I've got a program, which show me dialog box with a message and OK button to close it. I have to click many times,if there are too many similar objects found. Do anyone know how to write script to click “OK” button until this dialog box not display on screen.

 

 

Link to comment
Share on other sites

I should be something like:

while true

If WinExists(thewindows) then

WinActivate(thewindows)

ControlClick("[CLASS:thewindows]", "", "booton id")

endif

wend

 

saludos

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...