RL008 Posted March 9, 2010 Share Posted March 9, 2010 hello! I am trying to click on control using controlclick function. It work fine but in a certain control I tried using it like this: ControlClick("window name","","[Class:Button; Instance:1]","left", 1, 50, 50) or ControlClick("window name","","[Class:Button; Instance:1]","", 1, 50, 50) but it does not work. if I try "right click" it work so I dont know what is the problem. ControlClick("window name","","[Class:Button; Instance:1]","right", 1, 50, 50) Idea anyone? thank! Link to comment Share on other sites More sharing options...
GodlessSinner Posted March 9, 2010 Share Posted March 9, 2010 (edited) Try this: ControlSend ( "window name", "", "[Class:Button; Instance:1]", " ") or ControlSend ( "window name", "", "[Class:Button; Instance:1]", "{space}") or ControlSend ( "window name", "", "[Class:Button; Instance:1]", "{enter}") - 1 and 2 sends [space] to a button. Edited March 9, 2010 by Godless _____________________________________________________________________________ Link to comment Share on other sites More sharing options...
RL008 Posted March 9, 2010 Author Share Posted March 9, 2010 Try this: ControlSend ( "window name", "", "[Class:Button; Instance:1]", " ") or ControlSend ( "window name", "", "[Class:Button; Instance:1]", "{space}") or ControlSend ( "window name", "", "[Class:Button; Instance:1]", "{enter}") - 1 and 2 sends [space] to a button. no good... the control only gets mouse click. I have to click it but without using mouseclick function. did anyone had that problem? its very odd because "right" click does work. Link to comment Share on other sites More sharing options...
JohnOne Posted March 9, 2010 Share Posted March 9, 2010 Try "Primary" as your button. 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...
RL008 Posted March 10, 2010 Author Share Posted March 10, 2010 Try "Primary" as your button.I tyied it and "main" but nothing works.. Link to comment Share on other sites More sharing options...
IndyUK Posted March 10, 2010 Share Posted March 10, 2010 Hi, Try removing the Window name and just reference the control. Example. ControlClick("", "", "[Class:Button; Instance:1]") 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