If Pixel Exists Action—Setting Properties

The If Pixel Exists action sets up conditional steps that will be performed only if specified pixels exist at specified coordinates. This is used to base the execution of a set of steps on the presence or absence of a particular graphic.

When you create an If Pixel Exists step, an End If step is created automatically. Place the steps to be preformed if the condition is met between the If Pixel Exists step and the End If step. The steps within the block should be indented for visual clarity.

To set If Pixel Exists properties

  1. From the Task Builder Available Actions pane, open the Flow folder and double-click the If Pixel Exists action or drag it into the Steps pane.

  2. In the If box, select Pixel matches or Pixel is different.

  3. Open the window containing the graphic or display you want to check for.

  4. Select Coordinates relative to foreground window or Coordinates relative to screen.

  5. Move the mouse pointer over the graphic and press Insert at several key points to capture the colors and coordinates. Capture enough points from the graphic to accurately detect its presence or absence.

    The captured coordinates and color designations are shown in the table.

  6. To edit or delete an entry, select it in the table and click Edit or Delete. When you click Edit, a dialog box displays in which you can manually change the entries or use point and Insert to recapture coordinates.

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

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

  9. 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

If Pixel Exists Action

End If Action-Properties