Hallo,
ich bin neu in autoit und möchte einen Timer programmieren der von 10 sekunden runterzählt und wen er angekommen ist, dan soll eine msgbox erscheinen. bis jetzt aber ohne erfolg.
code:
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Timer", 214, 74, 192, 124)
GUISetFont(24, 800, 0, "MS Sans Serif")
$Label1 = GUICtrlCreateLabel("Timer", 0, 0, 210, 68)
GUICtrlSetFont(-1, 30, 800, 0, "MS Sans Serif")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
GUICtrlSetData($Label1,$timer)
EndSwitch
WEnd
Func timer()
TimerDiff(1000)
EndFunc
könnt ihr hier mir sagen wie man den Timer programmiert?
lg TimmlanHD