If you realy must use a SetTimer Change the function so it returns the miliseconds till the time instead of sleeping them.
Code:
#Persistent
msTill(Time) {
ST_Hour:=SubStr(Time, 1 ,2)
ST_Min:=SubStr(Time, 3 ,2)
ST_Sec:=(SubStr(Time, 5 ,2)<>"" ? SubStr(Time, 5 ,2) : "00")
STime:=(((ST_Hour-A_Hour)*60+(ST_Min-A_Min))*60+(ST_Sec-A_Sec))*1000
STime:=STime<0 ? STime+86400000 : STime
Return %STime%
}
Sleep msTill(1330)
MsgBox You can use with sleep
SetTimer Dest, % "-" msTill(140030) ;single run because running at intervals of the time till your destination is Silly
return
Dest:
MsgBox Or With a SetTimer
Return
Edit: Tuncay has added this to his
Library