Jump to content

How to get the control ID of the control with focus

Recommended Posts

Hi all,

I am trying to obtain the text of a control in the application I want to test. It is a list of elements, but there's no way I can guess the actual control name or ID from it.

I read in the help files and found the ControlGetFocus command. The problem with that is that it returns a ClassNameNN, and not an actual control ID.

That is why, when I use the following code, I can't obtain the control's text:

ConsoleWrite(ControlGetText("mcsvmserver2", "", ControlGetFocus("mcsvmserver2", "")))

Any help would be really appreciated,


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...