Jump to content

Recommended Posts

Posted

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,

Posted

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.

 

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...