Reading through the documentation got me this far:
Code: Select all
TimeString := FormatTime(,"HH:mm")
if (A_WDay ~= "2|3|4|5|6") { ;if week day is between monday and friday
If (xxxxxxxxxxxxx) { ;if TimeString is greater than 08:00 and smaller than 17:00
;my code
}
}