rony2006 Posted March 22, 2016 Share Posted March 22, 2016 (edited) Hello, I have the following script and I want to show the date and time refreshed each second in the gui. I tried with: Do GUICtrlSetData($datasiora,_Now()) Until $denumire ="dfdsfjhg4r43" In the while loop but after that the buttons don't work anymore. How I can update $datasiora to have the date and hour each time refreshed in the gui? Can you help me please? Edited April 8, 2017 by rony2006 private code and img used Link to comment Share on other sites More sharing options...
MattHiggs Posted March 22, 2016 Share Posted March 22, 2016 Maybe what you could try is creating 1 new variable: t1. Try initially setting t1 to @Sec macro. Then just create a loop where if t1 <> @Sec, then update date control. You think that would work for you? Link to comment Share on other sites More sharing options...
rony2006 Posted March 22, 2016 Author Share Posted March 22, 2016 The problem is that I don't know were to put the loop. Because I tried with a loop and the date was updating but the buttons and exit button was not working anymore. Link to comment Share on other sites More sharing options...
InunoTaishou Posted March 22, 2016 Share Posted March 22, 2016 Case Else GUICtrlSetData($datasiora, _Now()) At the bottom of your switch. Link to comment Share on other sites More sharing options...
rony2006 Posted March 23, 2016 Author Share Posted March 23, 2016 Thank you! It is working. 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