AMTrigger - Key

Description

When a task is triggered, a pre-named (or fixed field) dataset called AMTrigger is created and populated with a collection of data related to the event or condition that initially triggered execution. AMTrigger is a standard Automate dataset which can be used within a task to examine particular characteristics about the initiated trigger, such as the type of event that activated the trigger, when it occurred and  what computer it occurred on.

Parameters

The total number of fields that AMTrigger creates during runtime and what they are named depends largely on the trigger that launched the task. Each trigger contains its own set of unique AMTrigger values. The table below lists the AMTrigger values related to the Key trigger. For more details about an individual AMtrigger value, click the associated link.

Name

Data Type

Value

AMTrigger.Keys

String

Returns the hot-key combination or auto-keys that activated the trigger.

AMTrigger.WindowClass

String

Returns the window class of the window that was focused (in front of all other open windows) when the trigger occurred.

AMTrigger.WindowHandle

Number

Returns the window handle of the window that was focused (in front of all other open windows) when the trigger occurred.

AMTrigger.WindowTitle

String

Returns the title of the window that was focused (in front of all other open windows) when the trigger occurred.