Wait for button to activate?

Recommended Posts

iamrock 0

iamrock 0

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.