...sry hab keine passende überschrift gefunden und wusste auch nicht recht zu googeln.
Ich habe folgendes Problem. Der Benutzer gibt eine Zeit in Sekunden an in ein Inputfeld
z.B. $Sleeptime = 10
also 10000ms jetzt will ich, dass meine Prozentanzeige unabhängig davon mir immer
den stand richtig ausgibt...
$SleepTimer = TimerInit()
While 1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE then Exit
Sleep(50)
$SleepDiff = TimerDiff($SleepTimer)
GUICtrlSetData($Progress,$SleepDiff/1000*$SleepTime) ;Hier hab ich keine Ahnung wie die ormal lauten muss
If $SleepDiff > $SleepTime*1000 then
msgbox(0,"",$SleepDiff)
ExitLoop
EndIf
WEnd
thx für hilfe