iamrock Posted September 4, 2005 Posted September 4, 2005 This must be a stupid newbie question, but I scoured the help file with no success. Is there a way to click a button once it becomes active? Sort of like a WinWaitActive but for buttons. Basically, my script launches a program and downloads any updates. After the downloads finish, the "Next" button becomes active. But not knowing how long it will take to download all of the updates, I don't want to just use an excessive sleep command. Any suggestions?
TempestReborne Posted September 4, 2005 Posted September 4, 2005 Maybe it's possible to move the mouse to the location of the next button and have it click it when the pixel color changes? Not sure if this is possible, just kinda throwing it out there.
iamrock Posted September 4, 2005 Author Posted September 4, 2005 You may mean "enabled" rather than "active". There is a ControlCommand() called IsEnabled. Put a while loop around it.Lar.<{POST_SNAPBACK}>Thanks, I'll give that a try!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now