Hello.
With this code, I can get the current time every 10m:
Code: Select all
SetTimer, GetCompTime, 600000
return
GetCompTime:
FormatTime, MyTime,, HH:mm:ss tt
ToolTip % MyTime
return
Let's say I want to create a task which runs only once every day between 00:00:00 am and 00:10:00 am in the morning,
My problem is how do I make the comparison of this type:
Code: Select all
if current time is between time1 and time2, do the task only once
I have searched the old posts for this subject, some of them involve the EnvSub command or they change the format again with FormatTime. But they all also use the date in the comparison. I only want to compare the time since the task will repeat daily and not on a specific day.