Link to home
Start Free TrialLog in
Avatar of Accidental Hyper-V Administrator
Accidental Hyper-V AdministratorFlag for United States of America

asked on

AutoIT - How to wait on a button color change

Good morning everyone,

AutoIT newb here.

I am using AutoIT V3.

I am testing an application via an AutoIT script.

What I am doing:
I navigate to a location and left click on a button.
At that point, the button turn from green to grey.
I wait "sleep (20000)" for 20 seconds.
Then I continue with my script.

What I want to do:
Instead of waiting for 20 seconds, I want the Auto IT script to do nothing, until the button turns green again.
Atwhich point, I want the script to continue on its merry way.

I can’t for the life of me,figure out how to "do" such a thing.

Any help would be greatly appreciated.

Thanks in advance.

Ray in Wisconsin
ASKER CERTIFIED SOLUTION
Avatar of matrixnz
matrixnz

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of matrixnz
matrixnz

After the Wend you'd continue with your code.
Avatar of Accidental Hyper-V Administrator

ASKER

Perfect.

You’re the greatest !

Ray in Wisconsin