Sign in to follow this  
Followers 0
NBenitus

How to get the control ID of the control with focus

3 posts in this topic

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,

B.

Share this post


Link to post
Share on other sites



I am trying to obtain the text of a control in the application I want to test..

Have you tried the 'AutoIt Window Info' tool?

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

Have you tried the 'AutoIt Window Info' tool?

How neat ! Thanks a lot for the help !

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