Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Create scheduled task to run a macro or program
#9
Try this. Not tested.

Macro Macro2865
Code:
Copy      Help
#compile "__ScheduledTask"
ScheduledTask x
x.Create("Macro2871")
x.ScheduleDaily("9:00" 2)
x.SetAdvancedScheduleOptions("2017-01-01") ;;02 for even days
x.Save

But maybe better schedule 1 macro, every day. Let it get current day of year and if/else.
Macro Macro2877
Code:
Copy      Help
DateTime d.FromComputerTime
if d.GetDayOfYear&1
,out 1
else
,out 2


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)