Recommended settings to work with surface automation

Prepare your computer with the recommended settings of screen resolution, scale, and color depth.

Important:Make sure that the settings that you use in the development environment match with the settings in the production environment.

Screen Resolution

Capture the anchor images with the same resolution that the computer's screen has at run time to avoid mismatch in image recognition. For example, an image with a resolution of 1920 by 1080 is different from an image with a resolution of 1280 by 720.

Setting the screen resolution at run time

You can use the Set Screen Resolution (setScreenResolution) command to set the screen resolution at run time. It receives as parameters the screen width, height, and bits per pixel.

Set Screen Resolution command

Scale

IBM RPA requires a screen scale of 100%. Scaling changes can compromise automation, as surface automation uses the element's position on the screen to recognize what will be automated.

Color Depth

Check the bit depth set on your computer's screen as it can vary from screen to screen. The bit depth value set to represent the color, so the greater the number of bits, the greater the range of colors that the monitor can represent.

Related links

Related topics:

  • Capturing snips from screen captures
  • Actions for surface automation