Jump to content

How can a script wait for specific button?


Recommended Posts

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)


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

Link to comment
Share on other sites

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

Just offering an alternative. B)


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

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...