开发者

Looking for a C# or Java or Python or C++ example to control Windows Remote Desktop [closed]

开发者 https://www.devze.com 2023-02-07 05:19 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can ed开发者_运维知识库it the question so it can be answered with facts and citations.

Closed 4 years ago.

Improve this question

We have a hard policy that all computers must lock after 15 minutes of inactivity.

FOR GUI testing using CodedUI library, it is important that the connection is on, and that the screen is not locked. So, to circumvent the checks, I was thinking of writing a script in Python, etc. which would make the connection alive by ... say, hitting a "Windows" twice every 5 minutes.

I searched online and found nothing that seems relevant. Any suggestions?

http://www.google.com/#sclient=psy&hl=en&q=remote+desktop+api&aq=f&aqi=g1g-m4&aql=&oq=&pbx=1&fp=3f8c1f6954acb9e1

EDIT:

Thanks to Paul Sasik for asking me to clarify. Yes, I just need some sort of solution that would work.


Does it have to be remote? Whatever your solution you need some sort of service/daemon running on the target machine. Since you need that anyway, why not create a small app that simply emulates user interaction locally by moving a window or just sends a click to the desktop?

Here's an MSDN article that describes emulating mouse and keyboard events. Could be a start or exactly what you need.

0

精彩评论

暂无评论...
验证码 换一张
取 消