Blocks & Flow EditorCommon

set screen resolution

Set display resolution before desktop or image-based automation

The set screen resolution block sets the screen resolution to a specified size. Use it before desktop automation or image-matching blocks to ensure consistent coordinates across development and production environments.

Bot Studio set screen resolution block configuration

Configuration

FieldDescription
NameOptional display label on the canvas.
X-Axis PixelsScreen width in pixels (e.g. 1920). Supports dynamic values using {variable} from msg properties.
Y-Axis PixelsScreen height in pixels (e.g. 1080). Supports dynamic values using {variable} syntax.

Outputs

PortDescription
Output 1 (success)Resolution set successfully, or already matches the target. msg.payload contains a success indicator.
Output 2 (error)Command failed. Error details on msg.payload — connect to a catch block for error handling.

Notes

  • Place early in the flow, before launch browser, mouse click, or image click blocks
  • Image-based automation matches more reliably when dev and production use the same resolution
  • Use msg.variable with {variable} syntax for dynamic resolution from task variables
  • Changing resolution affects the entire display — coordinate-based blocks depend on this setting
On this page

On this page