acoustic25 Posted January 15, 2015 Share Posted January 15, 2015 the script goes winwaitactive..... controlclick... what i want to do is when the controlclick is successful then do this, if not then blah blah blah. the problem is when the windows is active the button is sometimes unclickable. that's when the script hangs. Link to comment Share on other sites More sharing options...
jguinch Posted January 15, 2015 Share Posted January 15, 2015 Something like this ? $hWin = winwaitactive($sTitle) $res = ControlClick($hWin, "", $id) If $res Then ; OK Else ; error EndIf Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
acoustic25 Posted January 15, 2015 Author Share Posted January 15, 2015 how will i know if it was clicked successfully? the windows is always active but the button is sometimes grayedout so it's not clickable. Link to comment Share on other sites More sharing options...
JohnOne Posted January 15, 2015 Share Posted January 15, 2015 Well what does it return when it's greyed out? 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...
acoustic25 Posted January 15, 2015 Author Share Posted January 15, 2015 the script hangs when its not clicked.. sorry for my ignorance but i'm just a newbie at autoit Link to comment Share on other sites More sharing options...
Solution JohnOne Posted January 15, 2015 Solution Share Posted January 15, 2015 Just try to see the return value of ControlClick when it is greyed out and when it is not. $ControlClick = ControlClick(stuff) MsgBox(0,0,$ControlClick) 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...
acoustic25 Posted January 15, 2015 Author Share Posted January 15, 2015 thank you guys i think i got it!!!! 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