在远程桌面上运行时替代 SendKeys? [英] Alternative to SendKeys when running over Remote Desktop?

查看:55
本文介绍了在远程桌面上运行时替代 SendKeys?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,它通过 SendKeys 将击键注入应用程序.

I have an application which injects keystrokes into applications via SendKeys.

不幸的是,当我通过远程桌面运行该应用程序时,它无法运行因为众所周知的问题,SendKeys 不适用于远程桌面.

Unfortunately, the application will not work when I am running it via Remote Desktop because of the well known issue that SendKeys doesn't work with Remote Desktop.

之前有没有人解决过这个问题,或者对如何解决有什么好的建议?

Has anyone solved this issue before, or have any good suggestions on how to resolve it?

推荐答案

SendKeys 不适合主要是因为:

SendKeys is not a good fit mainly due to:

  • 它只能将密钥发送到活动/专注的应用程序,这永远无法保证工作,因为活动应用程序可能会在实际发送密钥的时间之间发生变化.
  • RDP 和许多其他库(例如 DirectX)主要出于安全原因阻止它们.

更好的选择:

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆