timmyc Posted October 25, 2012 Share Posted October 25, 2012 Hey all, I am trying to automate an install of several applications. At the moment i have mousemove and control click commands set on a sleep timer but the time in between clicks may vary depending on what's happening in the background and the PC speed etc SO...instead of sleep, mousemove then controlclick is there a way to tell it to click on the button only when it becomes active. For example in an install screen it does its "Calculating space requirements" and when finished the Next button goes from greyed out to active. Thats when i want to click it rather than waiting for the sleep delay. Thanks Tim Link to comment Share on other sites More sharing options...
JohnOne Posted October 25, 2012 Share Posted October 25, 2012 Take a look at ControlCommand <- help file. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
stormbreaker Posted October 25, 2012 Share Posted October 25, 2012 Something like: Do Sleep(100) Until ControlCommand("Run", '', "[TEXT:OK]", "IsEnabled") = 1 ControlClick("Run", "", "[TEXT:OK]") ---------------------------------------- :bye: Hey there, was I helpful? ---------------------------------------- My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1 Link to comment Share on other sites More sharing options...
timmyc Posted October 29, 2012 Author Share Posted October 29, 2012 Thanks all, Used a combo of controlcommand and mouseclick Again yall very helpful! Thanks Tim Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted October 29, 2012 Moderators Share Posted October 29, 2012 Just out of curiosity, if ControlCommand works for you to wait for the button to be enabled, why not then use ControlClick as MKISH suggested above? I guarantee you will find it more reliable than a mouseclick. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! 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