madfox9007 Posted June 6, 2007 Share Posted June 6, 2007 In the program that I am trying to automate, after one button is clicked the program preforms a task then another button must be clicked. Is there a way to tell when the second button can be clicked. The mouse icon doesnt change while the program is performing its task, but the buttons do become unclickable while the program is preforming its task. Any help would be great. Thanks Link to comment Share on other sites More sharing options...
PsaltyDS Posted June 6, 2007 Share Posted June 6, 2007 You can check the control for Enabled with ControlCommand() and "IsEnabled". Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Braas Posted June 6, 2007 Share Posted June 6, 2007 If you know how long the button is unclickable you could use Sleep ( delay ) Another solution I could think of would be to just keep sending clicks until succesful. Link to comment Share on other sites More sharing options...
Zedna Posted June 6, 2007 Share Posted June 6, 2007 (edited) As PsaltyDS said: While ControlCommand("Title", "Text", "Button1","IsEnabled","") = 0 Sleep(50) WEnd Edited June 6, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
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