Setting Task Properties

 

This example sets the current task to run itself every 3 days starting on September 15, 1999 at 11:29AM. When the task runs, it will reschedule itself relative to the time it was originally set to launch. If the task is late, it will not run at all.

 

Sub Main

 ' Set the task to trigger by schedule and hotkey

 CurrentTask.TaskTriggers = 9

 

 ' Set the task to ôeveryö

 CurrentTask.Frequency = 1

 

 ' Start launching on September 15, 1999

 CurrentTask.LaunchDate = ô09/15/1999ö

 

 ' At 11:59 AM

 CurrentTask.LaunchTime = ô11:29 AMö

 

 ' Set the interval type to ôdaysö

 CurrentTask.IntervalType = 2

 

 ' Set the interval to 3, for every three days

 CurrentTask.Interval = 3

 

 ' If we are late, donÆt run at all

 CurrentTask.RunLate = 1

 

 ' Reschedule the task relative to the launch date/time if we are late

 CurrentTask.ScheduleLate = 0

 

 ' Set the hotkey trigger to Ctrl-Shift H

 CurrentTask.Hotkey = ô%&Hö

End Sub