Code:
If TimerDiff($_TimerLog) < 1000 Then If $Seconds > "59" Then $Seconds = "00" GUICtrlSetData($timer, $Days&":"&$Hours&":"&$Minutes&":"&$Seconds) $Minutes += 1 If $Minutes > "59" Then $Minutes = "00" GUICtrlSetData($timer, $Days&":"&$Hours&":"&$Minutes&":"&$Seconds) $Hours += 1 EndIf If $Hours > "59" Then $Hours = "00" GUICtrlSetData($timer, $Days&":"&$Hours&":"&$Minutes&":"&$Seconds) $Days += 1 EndIf Else $Seconds = $Seconds + 1 EndIf GUICtrlSetData($timer, $Days&":"&$Hours&":"&$Minutes&":"&$Seconds) Else MsgBox(0, "", "bad") EndIf $_TimerLog = TimerInit()
anybody know how to make this set the timer every 1sec not every milisec?
i dont wana use sleep ... ;/