前端伪造三年经验怎么说_如何使用三键鼠标伪造前进和后退按钮

前端伪造三年经验怎么说

前端伪造三年经验怎么说

image

If you’re stuck using a three-button mouse, this doesn’t mean you have to give up on the comfort of Back and Forward browser buttons. Using a simple AutoHotkey script, you could set your mouse up so that you can hold the right mouse button and scroll the wheel to emulate these all-important buttons.

如果您被三键鼠标卡住了,这并不意味着您必须放弃使用后退和前进浏览器按钮的舒适性。 使用简单的AutoHotkey脚本,您可以将鼠标设置为可以按住鼠标右键并滚动滚轮以模拟所有重要按钮。

获取脚本 (Getting The Script)

First of all, here’s the script itself. You can just copy/paste these lines into a local AHK file and run it by double-clicking on the script file.

首先,这是脚本本身。 您只需将这些行复制/粘贴到本地AHK文件中,然后双击脚本文件即可运行它。

#IfWinNotActive Total Commander RButton::click right RButton & WheelDown::Send {Browser_Back} RButton & WheelUp::Send {Browser_Forward} #IfWinNotActive

#IfWinNotActive总指挥官RButton ::单击右键RButton和WheelDown ::发送{Browser_Back} RButton&WheelUp ::发送{Browser_Forward} #IfWinNotActive

Of course, you could also add this code to an existing AutoHotkey script if you want.

当然,您也可以根据需要将此代码添加到现有的AutoHotkey脚本中。

了解脚本 (Understanding The Script)

When you use a piece of code like this, it’s always nice to understand what it does so you can customize it. In this case, the first line excludes Total Commander; this is because Total Commander makes a distinction between short right clicks (for selecting files) and long right clicks (for showing a context menu). If you don’t use Total Commander, you can simply drop the first and last lines.

当您使用这样的一段代码时,了解它的作用总是很高兴的,因此您可以对其进行自定义。 在这种情况下,第一行不包括Total Commander; 这是因为Total Commander区分了短右键单击(用于选择文件)和长右键单击(用于显示上下文菜单)。 如果您不使用Total Commander,则只需删除第一行和最后一行。

As for the other three lines: RButton::click right preserves the original functionality of the right click. Without this line, right clicking would have no effect across your system. The remaining two lines emulate the back and forward buttons. On our test system, each “click” of the scroll wheel fired exactly one button press, so the tactile feedback was quite effective.

至于其他三行: RButton::click right保留了右键单击的原始功能。 没有此行,右键单击将对整个系统无效。 其余两行模拟后退和前进按钮。 在我们的测试系统上,滚轮的每次“咔嗒”声均按下一次按钮,因此触觉反馈非常有效。

扩展脚本 (Extending The Script)

Using this same principle, you could take the code from our recent post showing how to change a window’s opacity using a hotkey and tweak it so that holding the left mouse button while scrolling the wheel would make the active window more transparent. If you need a hint on how to do this, let us know and we’ll show you in the comments.

使用相同的原理,您可以从我们最近的文章中获取代码,该代码显示如何使用热键更改窗口的不透明度并对其进行调整,以便在滚动滚轮时按住鼠标左键可以使活动窗口更加透明。 如果您需要有关操作方法的提示,请告诉我们,我们将在评论中向您显示。

[Photo: iwd]

[照片: iwd ]

翻译自: https://www.howtogeek.com/howto/45191/how-to-fake-back-and-forward-buttons-with-a-three-button-mouse/

前端伪造三年经验怎么说

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值