Help Centre › Building 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:
- Navigate to the process where you would like to add the SCREEN Get pixel color function
- Click on the green button's drop-down (right side of the green button labelled "Process")
- On the menu that appears, click on the "+ Activity" item
- From here you can select the SCREEN Get pixel color option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| X | Yes | Number | - | The horizontal pixel coordinate |
| Y | Yes | Number | - | The vertical pixel coordinate |
| Variable | No | Text | color | The 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