Jump to content

Recommended Posts

Posted

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....

  • Moderators
Posted

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.

Posted

If WinActive('Name Of GUI') Then
    GUICtrlSetData($nameoflabel, "new label content")
    sleep(1500)
    GUICtrlSetData($nameoflabel, "new label content")
EndIf
sleep(1500)
Thank you!
  • Moderators
Posted

Thank you!

:lmao:

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.

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
×
×
  • Create New...