Simple time passed script. [autoit]
Well I just wrote this script for a personal project and decided to share it.. It keeps track of minutes passed so you can easily run a script for a certain amount of time..
Ok here is just the basic time difference checker script.
change the part where it says + 1 , change the 1 to the amount of minutes you want to pass.
And here it is, with a cool current time tooltip added.
Ok here is just the basic time difference checker script.
Code:
#include <Date.au3> $StartTicks = _TimeToTicks(@HOUR,@Min..,@Sec) while 1 if _TimeToTicks(@HOUR,@Min..,@Sec) = $StartTicks + 1 * 60 * 1000 Then MsgBox(0,"diff", "1 minute passed") Exit EndIf WEnd
And here it is, with a cool current time tooltip added.
Code:
#include <Date.au3> Global $Sec, $Min, $Hour, $Time $StartTicks = _TimeToTicks(@HOUR,@Min..,@Sec) while 1 $CurrentTicks = _TimeToTicks(@HOUR,@Min..,@Sec) _TicksToTime($CurrentTicks, $Hour, $Min, $Sec) tooltip("Current time- " & $Hour & ":" & $Min & ":" & $Sec) if _TimeToTicks(@HOUR,@Min..,@Sec) = $StartTicks + 1 * 60 * 1000 Then MsgBox(0,"diff", "1 minute passed") Exit EndIf WEnd

