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
change the part where it says + 1 , change the 1 to the amount of minutes you want to pass.
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