Jump to content

Getting handle of control with specific text

Recommended Posts

I am trying with the ControlGetHandle ( "Window title", "", "[TEXT:Text of this control]") but no handle is returned even though if i use

ControlGetText ( "title", "text", controlID ) will return text of this control so i wonder whats going wrong with the controlgethandle returning nothing

If you wonder why i need this its because instance of control changes randomly so i am trying to get handle from the Class property combined with the Text(Doesnt work) which should be enough to identify control

Edit: I always figure it on my own in the end

Solved by iterating and checking text for each instance

Edited by Aktonius
Link to comment
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

  • Recently Browsing   0 members

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