Sign in to follow this  
Followers 0
MrChiliCheese

Get Name of control?

5 posts in this topic

Well, some (hopefully) pretty basic question. How do I get the name (not the text!) of a control?

See the attached picture from the WindowInfo Tool!

I want to retrieve either "Project" or "[NAME:Project]".

Thank you!

post-38066-0-96394700-1375355444_thumb.p

Share this post


Link to post
Share on other sites



Have you tried getting the classname instead of name? Also, as you have blanked out the name of the program it is a little difficult to offer suggestions. Care to share the name of the app you're trying to manipulate? There may be a much easier way to accomplish what you're trying to do. If it is something private for work or something, feel free to PM.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

Thank you!

 

The problem is that the window has about 100 different control that have almost the same classname (only the instance is increasing). As most of the controls don't have any text the only thing that I can use to identify the control is actually the name.

Share this post


Link to post
Share on other sites

Hence why knowing what application you try to automate is helpful :) The examples in the helpfile for ControlSend show how to target aspecific Iinstance of a control.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

Application is WinCC flexible. Software to create GUIs for industrial computer.

 

My problem is, that I want I need to find that specific control within the window. As the control does not have any text, the position and the size of the control is different the only way to find it, is readind all the control into an array and then getting then checking for the name. But how do I get the name...?

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