检测自动写入器(keboard-hooks)
我需要检测文本输入是否由键盘或某些自动编写工具(使用键盘挂钩模拟键盘的应用程序)处理。你有什么想法或者这是不可能的吗?谢谢
I need to detect if text input was processed by keyboard or some auto writer tool (app which simulates keyboard by using keyboard hooks). Do you have any ideas or is it impossible? Thanx
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
上一个 StackOverflow 问题 您可以利用它。
根据您的情况,请谨慎限制可访问性 - 例如,平板电脑触摸屏等屏幕输入设备、手写识别或旨在支持残障人士的软件可能仍然是您的应用程序的合法输入源,即使输入不是合法的从传统的物理键盘。
There is a Raw API discussed in a previous StackOverflow question that you can leverage.
Depending on your scenario, be careful about restricting accessibility - for example screen-input devices such as tablet touchscreens, hand-writing recognition or software designed to support those with disabilities may still be legitimate input sources for your application even if the input isn't from a traditional physical keyboard.