Jump to content

Recommended Posts

Posted

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]

Posted

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

 

Posted

#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]

Posted

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]

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
×
×
  • Create New...