kesavan

need to read the text from Label from a Window

8 posts in this topic

#1 ·  Posted

I need to read or get the text from label or textblock from a window.

PFA for more details

Help would be appreciated. Thanks in advance.

Capture.JPG

Share this post


Link to post
Share on other sites



#2 ·  Posted

@kesavan

Welcome to the AutoIt forum :)

Do you have to read "myfirstname" ? :)


Click here to see my signature:

Spoiler

I will always thank you for the time you spent for me.
I'm here to ask, and from your response, I'd like to learn.
By my knowledge, I can help someone else, and "that someone" could help in turn another, and so on.

Share this post


Link to post
Share on other sites

#3 ·  Posted

No. I have to read "First Name" or "Last Name"

Share this post


Link to post
Share on other sites

#4 ·  Posted

5 minutes ago, kesavan said:

No. I have to read "First Name" or "Last Name"

The two labels? For which purpose, If I can ask? :)


Click here to see my signature:

Spoiler

I will always thank you for the time you spent for me.
I'm here to ask, and from your response, I'd like to learn.
By my knowledge, I can help someone else, and "that someone" could help in turn another, and so on.

Share this post


Link to post
Share on other sites

#5 ·  Posted

There is a Label in my window. There is a combo box and it has some list of values. For eg: 1, 2, 3.

 

If I choose 2 from combo box, it will write text in the label. I need to read the text of the label

Share this post


Link to post
Share on other sites

#6 ·  Posted

So this is another application and not your own GUI in the script?

If so, use au3info to get the control information and use the ControlGetText() function to get the information from the window.

Jos

 


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#7 ·  Posted

@kesavan

Yeah, @Jos is right.

Let us know if you managed to do what you're trying to do :) 


Click here to see my signature:

Spoiler

I will always thank you for the time you spent for me.
I'm here to ask, and from your response, I'd like to learn.
By my knowledge, I can help someone else, and "that someone" could help in turn another, and so on.

Share this post


Link to post
Share on other sites

#8 ·  Posted

I tried the same. But, In AutoIt v3 window info tool, I am not able to find the ID of the control (in this case Lable)

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