Andreik 66 Posted June 23, 2010 (edited) Check this code. It should change the time from control after 5 seconds but isn't change anything. What is wrong here?$MAIN = GUICreate("Test",300,186) GUISetBkColor(0xC0E0FF,$MAIN) $TIME = GUICtrlCreateDate("",40,30,150,30,BitOR(0x20,0x09,0x01)) GUISetState() Sleep(5000) GUICtrlSetData($TIME,"18:05:11") Sleep(5000) Edited June 23, 2010 by Andreik When the words fail... music speaks Share this post Link to post Share on other sites
kaotkbliss 146 Posted June 23, 2010 Let's step through the code... You create your gui You set your time variable you sleep for 5 seconds then display the variable you set 5 seconds ago 010101000110100001101001011100110010000001101001011100110010000001101101011110010010000001110011011010010110011100100001My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueekWe're gonna need another Timmy! Share this post Link to post Share on other sites
somdcomputerguy 103 Posted June 23, 2010 Change this GUICtrlSetData($TIME,"18:05:11") to GUICtrlSetData($TIME, @YEAR & "/" & @MON & "/" & @MDAY & " 18:05:11") - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Share this post Link to post Share on other sites
Andreik 66 Posted June 23, 2010 Change this GUICtrlSetData($TIME,"18:05:11") to GUICtrlSetData($TIME, @YEAR & "/" & @MON & "/" & @MDAY & " 18:05:11")Thanks, it works. When the words fail... music speaks Share this post Link to post Share on other sites
somdcomputerguy 103 Posted June 23, 2010 Thanks, it works.You bet. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Share this post Link to post Share on other sites