If Color


Conditionally plays a set of steps based on one or multiple pixels' color. If the color value meets the criteria, any steps following 'If Color' and preceding 'Else' or 'End If' (whichever occurs first) are played.

Parameters

  • Compare type: Specifies how to compare the pixel color, it can be the following:

    • Pixel color is same as specified color
    • Pixel color is not sam as specified color
    • Pixel color is changed

  • Wait time value for detecting color change For "Pixel color is changed" only, it specifies the number of seconds to wait for the pixel color.

  • position is relative to Specifies how to calculate the value of the location coordinates, it can be one of the following:

    • Relative to the screen coordinates
      Absolute coordinates, start from the top-left of the screen.

    • Relative to the foreground window
      Relative coordinates, start from the top-left of the foreground window.

    • Relative to the current position
      Relative coordinates, start from the position of the current mouse pointer.

  • Pos X Specifies the value of X coordinate.

  • Pos Y Specifies the value of X coordinate.

  • Color of pixel Specifies the color of pixel for comparing during playback.

  • Match color value exactly Specifies how to compare the color value, matching exactly or similarly.

  • Tolerance Specifies the tolerance value for the case of Match color value exactly is not (unchecked).

  • Pick coordinates and color (Capture tool) A tool for picking position coordinates and color. Just move the mouse pointer to the right box and drag it to the desired position, and then release the mouse key.

  • Picked by Hotkey Click the button to enter the picking state, and simply move the mouse pointer around the target position and then press the hotkey.

Notes:

The tolerance value must be a number from 1 to 255.