Noviceatthis Posted February 26, 2013 Share Posted February 26, 2013 Hello all I saw this script in another topic and one part confused me slightly Send("#r") Sleep(1000) $hHandle = WinGetHandle("Run") MsgBox(64, "Window Handle", 'Now this will click the "Cancel" button using >> WinGetHandle("' & $hHandle & '")') ControlClick($hHandle, "", "[CLASS:Button; INSTANCE:3]") in the last line, (i'm assuming the the $hHandle is the title) how are you meant to determine the instance number, especially when applied to a GUI with a lot of buttons. Apologies if this is a stupid question Link to comment Share on other sites More sharing options...
DOTCOMmunications Posted February 26, 2013 Share Posted February 26, 2013 I tend to use the AutoIT Window Info tool that comes with AutoIT to do this, it is on the control tab once you drag the target over the required control, not sure if there is any other way though Link to comment Share on other sites More sharing options...
Noviceatthis Posted February 26, 2013 Author Share Posted February 26, 2013 ah I see, yeh just tried it, thank you DOTCOMmunications Link to comment Share on other sites More sharing options...
Noviceatthis Posted February 27, 2013 Author Share Posted February 27, 2013 (edited) one more quick question, is there any way to use the mousemove function to jump to the stated instance, just for visual effect *ah, just figured it out, thanks again Edited February 27, 2013 by Noviceatthis 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