Ich glaube er weis eher nicht wie er die Uhr aktualisieren soll:
Spoiler anzeigen
[autoit]
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
Global $blink = True
[/autoit] [autoit][/autoit] [autoit]$Form1 = GUICreate("", 117, 37, 192, 124)
$Label1 = GUICtrlCreateLabel("", 8, 8, 100, 20)
GUICtrlSetColor(-1, 0xFF0000)
GUICtrlSetFont(-1, 15)
_time()
[/autoit] [autoit][/autoit] [autoit]GUISetState(@SW_SHOW)
[/autoit] [autoit][/autoit] [autoit]AdlibRegister("_time", 500)
[/autoit] [autoit][/autoit] [autoit]While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Func _time()
If $blink Then
GUICtrlSetData($Label1, @HOUR & ':' & @MIN & ':' & @SEC)
$blink = Not $blink
Else
GUICtrlSetData($Label1, @HOUR & ' ' & @MIN & ' ' & @SEC)
$blink = Not $blink
EndIf
EndFunc ;==>_time