DJI Posted January 17, 2006 Share Posted January 17, 2006 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 More sharing options...
Moderators SmOke_N Posted January 17, 2006 Moderators Share Posted January 17, 2006 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 More sharing options...
DJI Posted January 17, 2006 Author Share Posted January 17, 2006 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 More sharing options...
Moderators SmOke_N Posted January 17, 2006 Moderators Share Posted January 17, 2006 Thank you! 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now