DocsImageWait Pixel

Wait for On-Screen Pixel Color Change (Wait Pixel) in RunMacro

Desktop ModeRunMacro 3.5+

Wait Pixel monitors RGB values at specific screen coordinates in RunMacro, resuming execution the moment target colors match with minimal CPU usage.

Dialog & quick setup

RunMacro Wait Pixel command configuration dialog showing parameter fields
Configuration dialog and parameter fields for the Wait Pixel command in RunMacro.
  1. In RunMacro, open the Image › Wait Pixel command.
  2. Click 🎯 Pick Pixel and left-click the target on-screen pixel to automatically capture X, Y and RGB values.
  3. Set Tolerance (default 10–15 to accommodate minor OS anti-aliasing or compression shifts).
  4. Configure Timeout (ms) (e.g. 5000ms or 10000ms).
  5. Click Save to insert the command into your workflow.

Options reference

Coordinates X, Y

Absolute screen pixel coordinates (X, Y) to monitor.

RGB Color Values

Target color channel values: R (Red 0–255), G (Green 0–255), B (Blue 0–255).

Color Tolerance

Maximum allowable color variance per channel (0 to 50, default 10) to guard against subpixel anti-aliasing shifts.

Timeout (ms)

Maximum time in milliseconds to wait for the pixel color match before proceeding (default 5000ms).

Modes & when to use

Desktop Mode

Samples 1x1 pixel bitmaps via Windows GDI with ultra-fast responsiveness.

Best for

  • Waiting for a connection status indicator to change from red to green in device control utilities.
  • Waiting for an action button to change background color once background compilation finishes.
  • Detecting 100% completion on progress bars by inspecting the pixel at the bar's rightmost edge.
  • Synchronizing canvas graphics, emulators, or game states where standard UIA trees are unavailable.

Use an alternative when

  • Target element position shifts dynamically across runs (use Find Image or Smart Desktop Wait).
  • Web browser automation (use Smart HTML Wait).
Before you run
  • Target screen pixel is visible and unobscured by overlapping windows.

Example workflow

Example: Wait for status indicator to turn green RGB(34, 197, 94)

  1. Add a Wait Pixel command after clicking 'Connect Device'.
  2. Use Pick Pixel to sample the LED indicator location.
  3. Set RGB to (34, 197, 94), Tolerance to 15, and Timeout to 8000ms.
  4. When connection establishes and the LED turns green, RunMacro resumes instantly to begin data transmission.
Expected result: Execution resumes instantaneously once the target pixel matches designated RGB parameters.

Tips & limitations

A Tolerance of 15 is optimal across Windows apps to absorb font smoothing (ClearType) color variations.
Ensure the target window is not obscured or overlapped by other windows during pixel monitoring.
  • Windows Night Light or HDR color mapping may slightly shift raw RGB values.

Applies to RunMacro 3.5+ · Desktop Mode · Windows 10/11

RunMacro robot

Robots do the work. Your time is yours.

Create a robot in minutes, no coding needed. Reliable execution, remote management, transparent costs — and you always stay in control.