“默认缩放级别”鼠标按钮

发布于 2024-09-16 12:10:46 字数 655 浏览 13 评论 0原文

许多鼠标和键盘上都有“缩放”按钮。这些几乎总是向应用程序生成 Ctrl+鼠标滚轮消息,因此我们程序员很容易解释它们。

但我现在的罗技鼠标还有一个附加功能。缩放轮确实在滚动(或者实际上倾斜)时发送 Ctrl+鼠标滚轮消息,但是当我按下缩放轮时,大多数程序会将缩放级别恢复为默认值,即 100%。在这种情况下,鼠标向应用程序发送什么样的消息?我找不到合适的虚拟按键代码它。

我可能应该说我已经尝试捕捉这个事件。在我的 Delphi 应用程序中,我为 KeyDownMouseDownMouseWheel 事件编写了处理程序,但这些事件都不是由这个神秘的按钮触发的。

支持此按钮的应用程序:

  • 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

抠脚大汉 2024-09-23 12:10:46

没有专用的快捷键或 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.

滿滿的愛 2024-09-23 12:10:46

我有一台 Logitech M570 并下载了“设置点”。
并非所有鼠标/轨迹球都具有此功能,致命的赠品是鼠标或轨迹球上有一个“前进/后退”按钮。如果您可以获得“设定点”,则可以使用可编程按钮/滚轮选项。

  1. 在他们的产品页面上找到您的鼠标或轨迹球,然后,>支持> (你的鼠标),>下载
  2. 如果您的设备可以使用“设置点”,请参阅左侧的下载按钮窗口,确保您的 Windows 版本。
  3. “设置点”
  4. 选择窗口底部的 ,点击下载,完成向导步骤。下载可能很快,也可能需要一段时间。
  5. 如果看起来已成功下载,>控制面板>老鼠。您将看到“鼠标属性”,查找设置点选项卡。
  6. 尝试在“按下”鼠标滚轮或“倾斜”按钮上编程“ctrl”。
    我是一名作家,我喜欢我的 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.

  1. find your mouse or trackball on their product page, then, > support > (your mouse), > downloads
  2. If your device can use 'set point', see download button window on the left, insure your Windows version.
  3. Select 'set point'
  4. at the bottom of the window, hit download, go through wizard steps. Download may be fast or take a while.
  5. If it looks like it successfully downloaded, > control panel > mouse. You will see 'mouse properties', look for set point tab.
  6. Try programming 'ctrl' on your 'depress' mouse wheel or 'tilt' button.
    I'm a writer, I love my M570 wireless trackball!
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文