|
Loop Processes Action |
Declaration |
<AMLOOPPROCESSES RESULTVARIABLE="text
[variable]" KEEPPATHS="yes/no"> |
See Also |
Loop, End Loop, Loop Files, Loop Windows, Loop Expression, Loop Dataset, Loop List, Break |
Loops through the filenames of the processes (applications) that are currently running on the system. The variable specified in the Index parameter is updated with the process filename. With each successive loop, the next process filename is retrieved. The loop ends after all the process filenames have been retrieved or when a Break is encountered.
To perform an action on every process (application) open on the system.
Specifies an already created variable name that should be populated with the next process name on each successive loop.
Specifies that the folder path should be removed from the return value so that a filename only (the process name) is returned.
Specifies that invisible (hidden) windows should be included in the loop results.
Standard Error Handling Options
This action also includes the standard "Error Causes" and "On
Error" failure handling options/tabs
More on Error Handling Options
Variables and Expressions
All text fields allow the use of expressions by surrounding the expression
in percentage signs (example: %MYVARIABLE%, %Left('Text',2)%). To help
construct these expressions, a popup expression builder is available in
all these fields by pressing F2.
More on variables...
More on expressions...
More on the expression builder...
<AMVARIABLE NAME="currentprocessname">
<AMLOOPPROCESSES RESULTVARIABLE="currentprocessname"
KEEPPATHS="NO">
<AMMESSAGEBOX MESSAGETEXT="The current process is
%currentprocessname%">
</AMLOOP>