boogieoompa Posted December 10, 2015 Share Posted December 10, 2015 After a rather long break from AutoIt work calls for a new app. I am trying to hot key a UI that has multiple controls with no control IDs but unique text. ControlFocus("RobotControl", "zoomInBtn","") ControlClick("RobotControl", "zoomInBtn","")I don't want to have to resort to coordinates (for obvious reasons), is there a way of identifying the control simply by the text and clicking on it?Thank you very much, Link to comment Share on other sites More sharing options...
Malkey Posted December 10, 2015 Share Posted December 10, 2015 If "RobotControl" is the window title, and "zoomInBtn" is the text displayed in the control, then try this.ControlClick("RobotControl", "", "[Text:zoomInBtn]")You can check the window title and control's text using Au3Info.exe which is found in the AutoIt installed directory, or Tool menu of SciTE. Link to comment Share on other sites More sharing options...
boogieoompa Posted December 10, 2015 Author Share Posted December 10, 2015 Absolutely positively PERFECT! Incidently the "advanced mode" field also works as well using the same syntax. Thank you a TON! 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