检测功能键被按下的最佳方法是什么?
如何使用在后台等待的 Windows 应用程序最可靠地检测按下的功能键?
理想情况下,我想要一个可以在 Windows、Linux 和 Mac 上运行的应用程序,所以我想知道是否可以使用 Adobe Air 来完成。
我希望无论用户当前使用什么应用程序,都能检测到功能键。
How can I most reliably detect a function key being pressed using an windows application that sits waiting for it in the background?
Ideally I would like an application that can be run on Windows, Linux and Mac's so I'm wondering if maybe it can be done using Adobe air.
I want the function key to be detected regardless of what application the user is currently using.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这说明了您需要做什么。
http://www.koders.com/csharp/fid477E4BD57EA637D92D19A65FEF3E160B4C7C139F.aspx
简而言之,它从调用 Win32 API 函数 SetWindowsHookEx 开始。
This illustrates what you need to do.
http://www.koders.com/csharp/fid477E4BD57EA637D92D19A65FEF3E160B4C7C139F.aspx
In short, it starts with a call to the Win32 API function SetWindowsHookEx.