Which is my screen resolution?

Hi everyone,

I have been developing a process in a virtual machine, which takes the screen resolution of my local machine. My local machine resolution is 1920x1080 BUT also, I had set the scale into 150%.

My process have many image recognition, which it is affected when the resolution change.

Do you know how can I set the scale parameter to my unattended robot? I have set the resolution in 1920x1080 but the image are not recognized due to the scale…

Thank you!!

When you create an Unattended Robot by default it is set to Login To Console: True. When it creates the RDP session I believe the virtual display adaptor will negotiate to 1024x768 or whatever the native resolution of the display adapter is. If you are using an interactive session Login To Console: False then it will either

  1. The resolution configured in the Robot Settings (when making a new session)
  2. Use the existing resolution if connecting to a pre-existing session.

The other consideration is you should ideally be developing in the resolution and scale that is as close to the production environment as possible to avoid any potential issues.

Please see some of my older comments around this topic, that should help shed some light for you.

Hi @codemonkee,

I wanted to share this.

I always enjoy reading your responses in the forum and learn a lot from them. Thank you for sharing your knowledge here and being so detailed and covering alternative causes to a problem.

I recently automated a legacy app and encountered a similar issue. The app functions properly when running attended because it adapts to the display settings of my machine, which is set to 1920x1080 with 150% scaling. However, when running unattended, the bot uses the default scaling of the virtual machine, which is 100% (you can verify this in the registry at HKEY_CURRENT_USER\Control Panel\Desktop).

What I did was run the bot attended, utilizing the adapted display settings from my monitor. I then converted the resolution/scale factor to obtain its equivalent resolution with a scale factor of 1. So, 1920/1.5 x 1080/1.5 would be equivalent to a resolution of 1280x720.

Of course, you also need to ensure that your robot/UiPath settings are configured correctly:

Set the project setting to “Starts in Background” to NO.
Set the Robot Settings (Orchestrator) “Login to Console” to NO.
Set the Robot Settings (Orchestrator) “width” and “height.”
Ensure UiPath.settings and robot settings are aligned.

Hi @ajgb

The issue is likely caused by the Windows display scaling being different between your local machine and the unattended robot.

Please try the following:

  • Set the unattended robot resolution to 1920x1080.
  • Make sure the Windows display scaling on the robot machine is also set to 100%.
  • Avoid using different DPI/scaling settings between development and execution environments.
  • If possible, use Computer Vision or stable selectors instead of image-based automation.

For image recognition, keeping the same resolution and scaling on both machines is important.

Hope this helps!

@MayureshOfficial_45

Can you please stop finding old threads from several years ago and posting generic posts that look like they have been written by an AI. Its creating alot of clutter here by reviving old topics that might not even still be relevant.