star2 Posted May 29, 2007 Posted May 29, 2007 this is the GUI #include <Date.au3> #include <GUIConstants.au3> GUICreate ("time", 180,80) $u = GUICtrlCreateLabel ("", 40,30,160,30) GUICtrlSetFont (-1,13,600) GUISetState () While 1 $msg = GUIGetMsg () If $msg = $GUI_EVENT_CLOSE Then ExitLoop EndIf GUICtrlSetData ($u , _NowTime ()) WEnd now how can we stop this flicking !!! JdeB did helped me befor in a similar case [quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u]
GaryFrost Posted May 29, 2007 Posted May 29, 2007 #include <Date.au3> #include <GUIConstants.au3> GUICreate("time", 180, 80) $u = GUICtrlCreateLabel("", 40, 30, 160, 30) GUICtrlSetFont(-1, 13, 600) GUISetState() $now = _NowTime() GUICtrlSetData($u, _NowTime()) While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop EndIf If $now <> _NowTime() Then GUICtrlSetData($u, _NowTime()) $now = _NowTime() EndIf WEnd SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
star2 Posted May 29, 2007 Author Posted May 29, 2007 #include <Date.au3> #include <GUIConstants.au3> GUICreate("time", 180, 80) $u = GUICtrlCreateLabel("", 40, 30, 160, 30) GUICtrlSetFont(-1, 13, 600) GUISetState() $now = _NowTime() GUICtrlSetData($u, _NowTime()) While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop EndIf If $now <> _NowTime() Then GUICtrlSetData($u, _NowTime()) $now = _NowTime() EndIf WEnd wow nicw jop but can u explain just a little [quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u]
GaryFrost Posted May 29, 2007 Posted May 29, 2007 wownicw jopbut can u explain just a littlePretty simple, only update when the time changes (every second) not every loop, which is something like every 10th of a second. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
star2 Posted May 29, 2007 Author Posted May 29, 2007 Pretty simple, only update when the time changes (every second) not every loop, which is something like every 10th of a second.thanks [quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u]
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