A problem keeps cropping up that seems like it should have a straightforward solution.
We need an unattended bot to run on 1920x1080p to work correctly. We also need to use hardware events as the software the bot is automating is so old.
The unattended bot runs on a Windows Server VM, so ‘Login to Console’ has to be enabled or hardware events will not work, as I understand it. However, if we do this, then we cannot set the resolution from the Orchestrator.
The bot then finds that when it logs in, the resolution is 1024x768, and this causes all sorts of issues. It doesn’t happen on every Windows Server though, so there must be a way of changing the default resolution that the bot will connect as.
The problem is that at 720p certain buttons or list items that the bot needs to click on (with hardware events) are not on screen even when maximised, and having to redesign the bot to deal with that would be no simple matter. Surely, there must be a way to keep it at the resolution it works best at!
Once you enable the loginToConsole in Orchestrator, the Uipath.settings configuration is overwritten and is not applied anymore.
Now i already changed the resolution to 1920x1080px32 on my robots even with LoginToConsole enabled and that worked fine (Windows 10 OS machine)
Did you try to set the resolution with LoginToConsole enabled?
Hi Emira, unfortunately it always sets itself back to 720p no matter what order we do it in. In the past, logging into the RDP first before launching the bot has also fixed this issue, but not in this case.
Anyway, thankfully there’s been a misunderstanding on my part which I alluded to in the intro. In the documentation about free RDP sessions Windows Sessions (uipath.com), I was confused over this section, where it says:
On a Windows Server, however, there can be an active RDP session for each user of the machine, or even multiple sessions for the same user. This means that multiple Robots can simultaneously execute processes on that machine, each for its designated user. In this scenario, Robots can also execute processes for a user on multiple sessions, but they must not rely on Hardware events (such as UIAutomation activities).
I read it as Hardware events can not be used for any free RDP session, but actually its only when the bot tries to login twice as the same user, which incidentally was the case the last time we tried this, so I had the wrong idea cemented in my head. Since then I’ve not even tried it, but it does actually work fine.
I think the question is still worth asking however - why do some server VMs launch by default 1080p anyway and not others?