Screen capture with C# and Remote Desktop problems

后端 未结 1 782
半阙折子戏
半阙折子戏 2021-02-07 12:20

I have a C sharp console application that captures a screenshot of a MS Word document several times. It works great, but when I place this application on a remote windows XP mac

相关标签:
1条回答
  • 2021-02-07 12:28

    Some time ago we were doing something similar, and we found that when RDC is minimized, the remote desktop session is not redrawn or accept keys or mouse events. Everything was working fine until we minimized the RDC screen. A colleague found out that this is done for performance reasons.

    Some days ago I stumbled upon this, but I haven't had the chance to try it. If you try and it works, please let me know :)

    Interacting with remote desktop when RDC is minimized

    Regarding your comments: I think this is another kind of issue... I understand that you need your application to work even if no one is logged into the machine. I've implemented services that are allowed to interact with the desktop, for example, to launch an application and automate it. Even no one is logged in the machine, you can still manipulate the UI, for example, with an UI automation library (or your code, I assume).

    After starting the machine, when my service and automated application are running everything works fine. Later on, the UI being automated will appear on the desktop of the first person who logs in (I was a machine administrator, I don't know what will happen when somebody with less privileges logs in).

    I don't know what will happen if the first login is done through RDC. Maybe you could try changing those RDC settings id this affects the behavior of your application. Another option is:

    1. Disable RDC and configure windows to Autologin with an specified account
    2. Connect to this machine using another remote desktop application (e.g. TightVNC)

    Does this help?

    0 讨论(0)
提交回复
热议问题