Sign in to follow this  
Followers 0
obiwein77

How can a script wait for specific button?

5 posts in this topic

I am scripting a software installation... How can I get the script to pause and wait for the "Finish" button and then activate that button when it does finally appear?

Share this post


Link to post
Share on other sites



I am scripting a software installation... How can I get the script to pause and wait for the "Finish" button and then activate that button when it does finally appear?

Try this

While 1
If ControlCommand ( "title", "text", controlID, "IsEnabled", "option") Then ExitLoop
WEnd

Remember to change title, text, controlID and option to suit. (see helpfile)



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

why so hard ? winwait('title', 'Finish') is all it takes.

Just offering an alternative. B)


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

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