SetForegroundWindow in Remote Desktop Connection

前端 未结 1 1876
挽巷
挽巷 2021-01-06 15:34

I have an application in C# which sends keys to another program. To do that I call SetForegroundWindow method before sending keys which works. Problem is when I am connected

相关标签:
1条回答
  • 2021-01-06 16:35

    This is very common problem. When you disconnect or minimize the RDP window, GUI context is lost. But you can keep RDP non-minimized (focus can be lost safely). In other words just turn full-screen mode off and switch to another window if you want to continue work locally.

    In our company testing teams use master-slave approach: master host initiates remote connections and keeps them non-minimized until each GUI automation task is done.

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