TaskTriggers Property

CurrentTask  Example

 

Specifies the triggers that will launch the task.

 

Declaration

Dim TaskTriggers As Integer

 

Description

The TaskTriggers property is an integer value that specifies which triggers will launch the task. To set the triggers, add the following values together from the table below:

 

Value

Trigger

Associated Properties

0

No Trigger

None; the task is launched manually only

1

Scheduled

LaunchDate, LaunchTime, Frequency, IntervalType, Interval, RunLate, ScheduleLate

2

Windows Events

Events

4

Wait for a Window

WindowName

8

Hotkey

Hotkey

 

For example, to set the task to launch on a schedule and a hotkey, the value of the TaskTriggers property would be 9 (1 + 8 = 9).