Sign in to follow this  
Followers 0
DJI

guicrtlsetdata...

4 posts in this topic

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

Share this post


Link to post
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)


[center]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.[/center]

Share this post


Link to post
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!

Share this post


Link to post
Share on other sites

Thank you!

:lmao:


[center]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.[/center]

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