Code: Select all
#noenv
#singleinstance, ignore ;*1
#Persistent ;*2
SetWorkingDir %A_ScriptDir%
if not A_IsAdmin
Run *RunAs "%A_ScriptFullPath%" ; (A_AhkPath is usually optional if the script has the .ahk extension.) You would typically check first.
setbatchlines, 10ms ;*3
settimer, emptymem, 600000 ;*4
settimer, time, 500 ;*5
time:
{
formattime, time, , hh:mm:ss tt ;*7
formattime, weekday, , dddd ;*8
formattime, monthday, , dd ;*9
formattime, month, , MM ;*10
if (time = "07:00:00 pm" && weekday = "Friday") ;*12
{
goto, task1
}
}
Code: Select all
if (time = "00:12:10 pm" && weekday = "Friday") || (time = "00:12:10 pm" && weekday = "Friday") || (time = "00:12:10 pm" && weekday = "Sunday") ; etc
{
goto, selectedtask
}
Kelly