钩住第三个 X 鼠标按钮吗?
我用 C# 编写了一个低级鼠标钩子,它应该捕获 XBUTTON 事件。对于第一个和第二个 xButton,它工作得很好,但我的鼠标上没有关于第三个 xButton 的消息。似乎没有可能的方法来捕获该按钮的事件?
我有一个游戏鼠标,在前两个 xButton 之间有第三个 xButton。当我单击它时,没有任何反应,因此我想编写一个自定义 C# Mouse-Hook 应用程序来为该按钮编写自定义行为......
I wrote a low-level mouse hook in C#, which should capture XBUTTON events. For the 1st and 2nd xButton it works just fine, but there is no message for the 3rd xButton on my mouse. It seems like there is no possible way to capture events for that button?
I have a gaming mouse and there, between the two first xButtons, is a third xButton. When I click it, nothing happens, so I wanted to write a custom C# Mouse-Hook app to program a custom behaviour for that button...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是正确的。第三个 X 按钮由鼠标驱动程序处理,而不是由 Windows 本身处理。 Windows 没有内置知识或支持两个以上的 X 按钮。如果没有安装特殊的驱动程序,这些附加按钮根本不会执行任何操作。
您需要了解如何与鼠标驱动程序软件进行通信。这是单击这些按钮时获取通知的唯一方法。
That's correct. The third X-button is handled by your mouse drivers, not by Windows itself. Windows doesn't have built-in knowledge of or support for more than two X-buttons. Those additional buttons wouldn't do anything at all without special drivers installed.
You need to find out how to communicate with your mouse driver software. That's the only way to get notifications when those buttons are clicked.