AMTrigger.ProcessID

Syntax:

%AMTrigger.ProcessID%

Trigger Supported:

Performance, Process

Type:

Number

Description:

Returns the process ID of the process that caused the trigger to activate. A process ID is a number automatically assigned to a process by the system. It can be used by other actions in AutoMate to identify an instance of a process when multiple instances of the same process are running. The table below describes how this value is returned for each type of trigger.

Trigger Type

Description

Performance Trigger

Returns the process ID of the process that caused the trigger to activate. This is dependent on if the trigger is monitoring for a specific process threshold (i.e. process thread count or process handle count).

Process Trigger

Returns the process ID of the process that caused the trigger to activate.

Example:

Description: Display the message "The unique process ID that initiated the trigger - %AMTrigger.ProcessID%" in a message box.

 

<AMSHOWDIALOG>The unique process ID that initiated the trigger - %AMTrigger.ProcessID%</AMSHOWDIALOG>

See Also:


AMTrigger.ProcessID | AMTrigger.ThreadID | AMTrigger.Value |