Search code examples
c#windowswindows-server-2008-r2remote-desktopinterrupt-handling

How to handling mouse events on a windows server disconnected user


I made a robot application which is moving and clicking mouse in another application. I want to run this robot in a user which is opening in remote desktop but when I minimize remote desktop or close it robot can not change the mouse position or click it. Please learn me a solution?


Solution

  • This registry key setting which will send the GUI output anyways:

    HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\RemoteDesktop_SuppressWhenMinimized

    REG_DWORD
    
    1 = Suppress when minimized
    
    2 = Do not suppress when minimized