SCREEN Get pixel color function

The SCREEN Get pixel color function in RPA.

Help CentreBuilding Processes

This article describes the RPA Screen functionality to get the color of a pixel at a specific position.

For a full list of available functions, please read SCREEN functions.


Description

The SCREEN Get pixel color function retrieves the RGB color value of a pixel at the specified screen coordinates.


Setting it up

To use the SCREEN Get pixel color function, follow these instructions:

{{popups:rpas/add:action=screen-pixel-color}}

Once on a process map:

  1. Navigate to the process where you would like to add the SCREEN Get pixel color function
  2. Click on the green button's drop-down (right side of the green button labelled "Process")
  3. On the menu that appears, click on the "+ Activity" item
  4. From here you can select the SCREEN Get pixel color option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
XYesNumber-The horizontal pixel coordinate
YYesNumber-The vertical pixel coordinate
VariableNoTextcolorThe variable name to store the result

Output variables

The {color} variable contains an array with three values: [r, g, b] representing the red, green, and blue components (0-255).


Errors

This action does not produce errors.


Tips

  • Use this function to detect screen state by checking the color of specific pixels, such as verifying a button is enabled or a status indicator has changed

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.