Hm hm hm
[autoit]#include <GUIConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Zeitnehmer", 210, 128, -331, 231, -1, BitOR($WS_EX_TOOLWINDOW,$WS_EX_WINDOWEDGE))
$Graphic1 = GUICtrlCreateGraphic(8, 8, 193, 65)
$Input = GUICtrlCreateInput("Zeit", 8, 88, 132, 25)
$Button1 = GUICtrlCreateButton("Start", 152, 80, 49, 41, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
Global $anix
$anix = 1
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $Button1
$read = GUICtrlRead($Input)
$array = StringSplit($read,":")
MsgBox(0,"",$array[3])
While 1
;noch für Stunden If einfügen
If $array[3] = 0 Then
$array[2] -= $array[2]
$array[3] = 59
EndIf
$array[3] -= $array[3]
Sleep(1000)
GUICtrlSetData($Input,$array[1] & ":" & $array[2] & ":" & $array[3])
WEnd
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Der Script sagt schon alles.
Warum ist der erste Wert immer Null ?????
![]()
Der Script soll so was wie ne Stoppuhr sein.
mfg Ubuntu