oder so:
Spoiler anzeigen
[autoit]
Func Example2()
Local $n, $msg
GUICreate("My GUI get time")
$n = GUICtrlCreateDate("", 20, 20, 70, 20, $DTS_TIMEFORMAT)
GUISetState()
; Run the GUI until the dialog is closed
Do
$msg = GUIGetMsg()
Until $msg = $GUI_EVENT_CLOSE
MsgBox(0, "Time", GUICtrlRead($n))
GUIDelete()
EndFunc ;==>Example2