AMTrigger.Trigger

Syntax:

%AMTrigger.Trigger%

Trigger Supported:

Global (supports all triggers)

Type:

String

Description:

Returns the name of the trigger that caused the task to start. Each trigger has its own "unique name" (listed below). For example, if the File System trigger was fired, this AMTrigger returns the value AMFILETRIGGER.

Trigger

Unique Name

Event Log

AMEVENTLOGTRIGGER

File System

AMFILETRIGGER

Idle

AMIDLETRIGGER

Key

AMKEYTRIGGER

Performance

AMPERFORMANCETRIGGER

Process

AMPROCESSTRIGGER

Schedule

AMSCHEDULETRIGGER

Service

AMSERVICETRIGGER

SNMP Trap

AMSNMPTRIGGER

Startup

AMSTARTUPTRIGGER

Window

AMWINDOWTRIGGER

WMI

AMWMITRIGGER

Example:

Display the message "AMTrigger.Trigger return value - %AMTrigger.Trigger%" in a message box.

 

<AMSHOWDIALOG WINDOWTITLE="AMTrigger Return Value">AMTrigger.Trigger return value - %AMTrigger.Trigger%</AMSHOWDIALOG>

 

See Also:


AMTrigger.AML |  AMTrigger.TaskName | AMTrigger.Trigger | AMTrigger.TriggeredDateTime | AMTrigger.TriggeredOn | AMTrigger.WasLocked | AMTrigger.WasLoggedOff