Events Property

CurrentTask2 Example

 

Specifies the window event trigger that will launch the task. Use in conjunction with the “Windows Events” value added to the TaskTriggers property of the task.

 

Declaration

Dim Events As Integer

 

Description

The Events property is an integer value that specifies which windows’ system events will launch the task. To set the window event triggers, add the following values together from the table below:

 

Value

Trigger

Associated Properties

0

None 

No Windows Events triggers.

1

System Time

System time has changed (NOTE: Windows will trigger this event each time you click on the System Calendar, regardless of whether or not you click “OK”, “Apply” or “Cancel” when setting the system time.

2

Low Memory

The system is getting low on memory.

4

System Device

A system device has been added, removed or its properties has changed.

8

Display Mode

The display mode (resolution or driver) has changed.

16

Color Palette

The color palette has changed.

32

Spooler

A print job has been added or removed from a printer queue.

64

Logout

A user is about to log off the workstation

128

Screensaver

Occurs just before the screensaver starts

 

For example, to set the task to launch on a system time change and a display mode change, the value of the property would be 9 (1 + 8 = 9).