Sign in to follow this  
Followers 0
abix

Using Controlgettext With "label" Controls?

5 posts in this topic

How can i get text of a label control? is it possible?

Share this post


Link to post
Share on other sites



It is usually possible.

1) Use the "AutoIt Window Spy" program (it should be in the AutoIt folder) to get the name of the label. Names are typically "Static1", "Static2", and so on.

2) Try ControlGetText("WindowTitle", "", "Static1") adjusting the window title and label name as needed.


Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

What if AutoIt Spy cannot detect the label? But it is there i see it :D

Share this post


Link to post
Share on other sites

Well, hmm. What is the program?

The program might not be using standard label controls. This is the case with Mozilla and Microsoft Word, for example.

You might not be able to get the text with AutoIt :D


Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

So thanks for help but i found a another way to solve my problem without getting label text... this time :D

Btw the program is sms.exe. I doubt you know it.

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