微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

AHK 将鼠标中键重新映射到其他东西

如何解决AHK 将鼠标中键重新映射到其他东西

经过一个月的反复试验,我终于找到了解决方案!

如何重新映射鼠标中键? 如果你没有三键鼠标,这是搅拌机(尤其是笔记本电脑)的必备品

我知道首选项>>输入中的“模拟 3 键鼠标”。 但是,如果您选中该选项,则将无法“选择循环” 使用 ALT leftClick。

如果您可以将 Mbutton 重新映射到您很少使用的任何其他键会怎样? 是的,你可以!

解决方法

很高兴看到您亲自尝试过。
但这里是上下文敏感的重映射实际是如何完成的:

#IfWinActive ahk_class GHOST_WindowClass
LWin::MButton
#IfWinActive
,

此脚本将允许您使用其他键(例如 LeftWin)重新映射 Mbutton。

;~--------------------------------------------------------------------------------------

#IfWinActive ahk_class GHOST_WindowClass ;      Blender's class
$LWin::   ;                                     "$" this allows to send the trigger key in a working script***
loop
{
   if getkeystate("LWin","p")           ;      if a button is Physically held down by the user.
    {
      send,{MButton DOWN}
    }
  else
    {
      send,{MButton UP}
      ;~ MsgBox,Blender is active       ;      You dont need this.
      return
    }
}
#IfWinNotActive ahk_class GHOST_WindowClass ;   Other than blender (I'm aware of other methods,but this works for me!)
Send,{LWin}                            ; ***   like here I'm able to use Left Win again without triggering the script.
;~ MsgBox,Blender isnt active ;;                You dont need this.
return


;~ --------------------------------------------------------------------------------------

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。