Sign in to follow this  
Followers 0
keeper

automatically click OK to close a dialog box

4 posts in this topic

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.

 

 

Share this post


Link to post
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

Share this post


Link to post
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

Thanks, I will try.

Share this post


Link to post
Share on other sites

Is it possible to increase the speed to closing the dialog box or make it hidden from window ? Because I don't want user can see the closing dialog box process.

Thanks again !

Share this post


Link to post
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
Sign in to follow this  
Followers 0