Spoiler anzeigen
#include <Date.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
Global $hour, $Mins, $secs
#region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 800, 600, -1, -1, BitOR($WS_MINIMIZEBOX, $WS_POPUP, $WS_GROUP, $WS_CLIPSIBLINGS), BitOR($WS_EX_TOPMOST, $WS_EX_WINDOWEDGE))
GUISetBkColor(0x000000)
$Label1 = GUICtrlCreateLabel("Label1", 10, 10, 780, 580, $SS_CENTERIMAGE)
GUICtrlSetFont(-1, 150, 400, 0, "Arial")
GuiCtrlSetColor($Label1, 0xFF0000)
GUISetState(@SW_SHOW)
#endregion ### END Koda GUI section ###
_Update()
AdlibRegister("_Update", 1000)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Func _Update()
_TicksToTime(_DateDiff('s', _NowCalc(), "2012/11/19 15:00:00") * 1000, $hour, $Mins, $secs)
GUICtrlSetData($Label1, StringFormat("%02i:%02i:%02i", $hour, $Mins, $secs))
EndFunc ;==>_Update
Grüße