Jump to content

How to get updated text of label?


Recommended Posts

Hello,

I would like to get text from label using ControlGetText function.

But when I open program I have login box first with label = "Log In", but when I login into program the label changed name to "Hello Sir".

I wrote a code like this :

$label = ControlGetText("program", "", "[NAME:Label5]")
Do
    sleep(100)
    MsgBox("Lal","lal",$label)
Until $label = "Hello Sir"

 

When I have Login Panel the message box is "Log in" ... and its ok.. but after I Log in still I have text on label "Log In" .... not Hello Sir... :<

How can I update the text of the same label?

Edited by Maches
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...