
I have a Desktop flow that searches for images and text on the screen and successfully completes
when the flow is run in the foreground (I'm logged into the VM when I execute the flow.)
But, if I logout of the VM and schedule a Cloud Flow to run the Desktop Flow in Unattended mode the image and OCR functions fail to find the items on the screen and throws an error.
Power automate does connect to the VM and executes the desktop flow just fine, until it hits
the functions to search for text or images on the screen, then fails.
Should it matter if the flow is running in the foreground while logged into the VM as apposed to
running in the background (Unattended Mode)?
Thank You
Make sure that the VM runs the same resolution as when you are running it in Attended mode.
As default it will run in 1024x768 in unattended mode, and that will making your images undetectable if they are captured in a higher resolution.
See below
Desktop\UIFlowService.exe.config and change the value to true (Default is false).
Set the resulution in the file to match the one that you use on your machine for scripting.
Otherwise you can run into some problems as the default resolution will be 1024x768.
Remember to edit this file each time you update PAD to a new version.