Jump to content

guicrtlsetdata...


DJI
 Share

Recommended Posts

In a gui program, i have a label that i want to change after X time...

someone told me to do

GUICtrlSetData($nameoflabel, "new label content")

sleep(1500)

GUICtrlSetData($nameoflabel, "new label content")

sleep(1500)

But the problem is... The program runs the sleep(1500) even before the gui window appears... and it appears, but at the last state after all the sleep....

Link to comment
Share on other sites

  • Moderators

If WinActive('Name Of GUI') Then
    GUICtrlSetData($nameoflabel, "new label content")
    sleep(1500)
    GUICtrlSetData($nameoflabel, "new label content")
EndIf
sleep(1500)

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

If WinActive('Name Of GUI') Then
    GUICtrlSetData($nameoflabel, "new label content")
    sleep(1500)
    GUICtrlSetData($nameoflabel, "new label content")
EndIf
sleep(1500)
Thank you!
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...