Jump to content
Sign in to follow this  
keeper

automatically click OK to close a dialog box

Recommended Posts

keeper

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
Danyfirex

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
keeper

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
keeper

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.