Loop Processes Action—Setting Properties

The Loop Processes action loops through all open applications and populates a variable with the application file names. It is used to perform an action on all open processes. The variable to populate must be created in an earlier step using the Create Variable action.

When you create a Loop Processes step, an End Loop step is created automatically. Place the steps to be performed on the processes between the Loop Processes step and the End Loop step. The steps within the block should be indented for visual clarity.

To set Loop Processes properties

  1. From the Task Builder Available Actions pane, open the Loop folder and double-click the Loop Processes action or drag it into the Steps pane.

  2. In the Populate variable with process name box, select the variable to populate.

  3. If you want to use the file name only, without the path, select Do not include path information.

  4. To populate a dataset with process and window data, enter a name for the dataset in the Create and populate dataset with extended process information box. (Dataset names must be alphanumeric, begin with a letter, and contain no spaces.)

    The dataset will contain: Process name, Process ID, Main window title, Main window class, and Main window handle.

  5. Click the Advanced tab.

  6. Use either the Include processes or the Exclude processes box to enter all or part of the application file names that you want to include or ignore. If you make an entry in the Include processes box, all processes that do not match your entry will be ignored. If you make an entry in the Exclude processes box, the specified processes will be ignored and all others will be included. You can use asterisk (*) and question mark (?) as wildcard characters. For example *MS* would specify all applications with MS in the file name.

  7. If you want to loop the processes in ascending or descending alphabetical order, make your selection in the Output list box.

  8. To set the Description tab properties, refer to Description Tab Options.

  9. To set the Error Causes and On Error tab properties, refer to Step Error Handling.

  10. When finished, click OK to save settings and close the properties dialog window.

To auto-indent after all steps are added

  1. In the Task Builder Steps pane, hold down SHIFT and click the first and last steps in the block so that the complete block of steps is selected.

  2. Click the Format button .

See Also

About Actions

Adding Task Steps

Loop Processes Action