Gayatri Posted July 16, 2014 Share Posted July 16, 2014 Hi all I am trying to automate Mouse clicks on GUI with Autoit 3 tool. I have the GUI with multiple buttons in it but the control ID of all remains same.(Control ID for each button is unavailable) When i use the Autoit 3 Window Info tool i see only the control click coordinates changes for the different buttons in it. Here is the code i used ControlClick("Title of the window", "", "[CLASS:ListBox; INSTANCE:1]", "left", 2, 1002, 16) But this doesnt click the button at that position. Can some one guide me on the syntax or how to go ahead with the Automation of this. Thanks in advance Gayatri Link to comment Share on other sites More sharing options...
FaridAgl Posted July 16, 2014 Share Posted July 16, 2014 You can use the classname of buttons if they are standard controls. And you have posted in the wrong section. http://faridaghili.ir Link to comment Share on other sites More sharing options...
232showtime Posted July 16, 2014 Share Posted July 16, 2014 Hi all I am trying to automate Mouse clicks on GUI with Autoit 3 tool. I have the GUI with multiple buttons in it but the control ID of all remains same.(Control ID for each button is unavailable) When i use the Autoit 3 Window Info tool i see only the control click coordinates changes for the different buttons in it. Here is the code i used ControlClick("Title of the window", "", "[CLASS:ListBox; INSTANCE:1]", "left", 2, 1002, 16) But this doesnt click the button at that position. Can some one guide me on the syntax or how to go ahead with the Automation of this. Thanks in advance Gayatri hi try this ControlClick("Title of the window", "", "[CLASS:ListBox;INSTANCE:1]") ill get to that... i still need to learn and understand a lot of codes Correct answer, learn to walk before you take on that marathon. Link to comment Share on other sites More sharing options...
somdcomputerguy Posted July 16, 2014 Share Posted July 16, 2014 Since you're using just coordinates anyway, try the Mouselick function. You may also have to make use of the WinWaitActive function. Welcome to the Forum! - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. 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