“默认缩放级别”鼠标按钮
许多鼠标和键盘上都有“缩放”按钮。这些几乎总是向应用程序生成 Ctrl+鼠标滚轮消息,因此我们程序员很容易解释它们。
但我现在的罗技鼠标还有一个附加功能。缩放轮确实在滚动(或者实际上倾斜)时发送 Ctrl+鼠标滚轮消息,但是当我按下缩放轮时,大多数程序会将缩放级别恢复为默认值,即 100%。在这种情况下,鼠标向应用程序发送什么样的消息?我找不到合适的虚拟按键代码它。
我可能应该说我已经尝试捕捉这个事件。在我的 Delphi 应用程序中,我为 KeyDown
、MouseDown
和 MouseWheel
事件编写了处理程序,但这些事件都不是由这个神秘的按钮触发的。
支持此按钮的应用程序:
- Google Chrome 5.0.375.127
- Microsoft Word 2010
似乎不支持此按钮的应用程序:
- Windows 7 中的 Microsoft 写字板
- Windows 7 中的 Microsoft Paint
Many mice and keyboards have "zoom" buttons on them. These almost always generate Ctrl+Mouse Wheel messages to the applications, so they are easily accounted for by us programmers.
But my current Logitech mouse has an additional feature. The zoom wheel indeed sends Ctrl+Mouse Wheel messages when scrolled (or, actually, tilted), but when I depress the zoom wheel, most programs restore the zoom level to the default, i.e. 100 %. What kind of message does the mouse send to the application in this case? I cannot find a suitable virtual key code for it.
I should probably say that I have tried to capture this event. In my Delphi application, I wrote handlers for the KeyDown
, MouseDown
, and MouseWheel
events, but non of them are triggered by this mysterious button.
Applications that support this button:
- Google Chrome 5.0.375.127
- Microsoft Word 2010
Applications that seem not to support this button:
- Microsoft WordPad in Windows 7
- Microsoft Paint in Windows 7
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
没有专用的快捷键或 Windows 消息。鼠标助手很有可能对具有焦点的进程有特定的认识。并生成该程序重置缩放所需的特定命令,可能是 WM_COMMAND 消息。使用 Microsoft Spy++ 等工具查看生成的消息(如果有)。
There is no dedicated shortcut key-stroke or Windows message. Odds are pretty good that the mouse helper has specific awareness of the process that has the focus. And generates the specific command that this program needs to reset the zoom, possibly a WM_COMMAND message. Use a tool like Microsoft's Spy++ to see what messages are generated, if any.
我有一台 Logitech M570 并下载了“设置点”。
并非所有鼠标/轨迹球都具有此功能,致命的赠品是鼠标或轨迹球上有一个“前进/后退”按钮。如果您可以获得“设定点”,则可以使用可编程按钮/滚轮选项。
我是一名作家,我喜欢我的 M570 无线轨迹球!
I have a Logitech M570 and downloaded 'set point'.
Not all mice / trackballs have this feature, dead giveaway is having a 'forward / back' button on your mouse or trackball. If you can get 'set point', there are programmable button / wheel options.
I'm a writer, I love my M570 wireless trackball!