AMTrigger.WindowTitle
Syntax
%AMTrigger.WindowTitle%
Triggers supported
Type
String
Description
Returns the window title of the window that activated the trigger. The following table describes how this value is returned for each type of trigger:
| Trigger Type | Description |
|---|---|
| Key trigger | The title of the window that is focused (in front of all other open windows) when the trigger occurs. |
| Window trigger | The title of the window that activated the trigger. |
Example
NOTE:
- Copy and paste the sample AML code below directly into the Task Builder Steps Panel.
- To successfully run the sample code, update parameters containing user credentials, files, file paths, or other information specific to the task to match your environment.
The following displays the message When the task triggered, the title of the focused window was %AMTrigger.WindowTitle%:
Copy
<AMSHOWDIALOG>When the task triggered, the title of the focused window was %AMTrigger.WindowTitle%</AMSHOWDIALOG>