Sign in to follow this  
Followers 0
boogieoompa

Controls without an ID

3 posts in this topic

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,

Share this post


Link to post
Share on other sites



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.

 

Share this post


Link to post
Share on other sites

Absolutely positively PERFECT!  Incidently the "advanced mode" field also works as well using the same syntax.  Thank you a TON!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0