Send Hotkey - Desktop has been disconnected while performing UI actions

Hi,

I am trying to run a process that sends hotkeys like WIN + r to start “Run” and CTRL + v to paste items. Running attended, this works fine, however when I run unattended via a scheduled trigger this does not work. I get the error Desktop has been disconnected while performing UI actions. As you can see in the pictures below, I have enabled “SendWindowMessages”. Special key hotkeys like “enter” work, however when there is a normal character in the hotkey it crashes.

1

Hello,

In orchestrator to connect o to this machine do you have RDP enabled?

Cheers,
Radomir

Hi Radomir,

I have never seen this option, where can I find it exactly?

Cheers.

Hello,

So in Orchestrator.

Go to your Robot, then click on 3 dots on a right side and enable Login to console.

Hi Radomir,

This did not fix the issue, I am still getting the error “Desktop has been disconnected while performing UI actions”. I don’t understand why this is happening.

Reporting an update:

The robot is running for 25 mins now, which is a good sign. What I did is:

  1. Go to the location HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server
  2. Create or edit the DWORD value of KeepAliveEnable
  3. Set it to 1 .
  4. Save and quit
    Source: https://superuser.com/questions/1144853/how-do-i-keep-an-rdp-session-alive-from-the-client-side

And also:

  1. by adding HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Terminal Server Client - RemoteDesktop_SuppressWhenMinimized and set it’s value to 2.
    Source: UiPath does not work in Cloud

I will keep this thread updated if I have new findings.