有没有办法将此规则添加到此脚本
r::
send {Mbutton down}
KeyWait, r
send {Mbutton Up}
return
MMB是Sketchup的默认导航轨道,我想将其交换为R. 我能够做到这一点
现在我想添加一条规则,当我按住并按下mmb时,它将自动禁用鼠标左键和鼠标右键 这样它就不会激活平移或上下文菜单
先谢谢你
答案 0 :(得分:0)
$r:: ; The $ prefix forces the keyboard hook to be used to implement this hotkey.
send {Mbutton down}
Disable_Left_Right_Button = 1 ; creates the variable "Disable_Left_Right_Button" and sets its value to 1 (= true)
KeyWait, r ; waits until the key is released
send {Mbutton Up}
Disable_Left_Right_Button = 0 ; sets the value of the variable to 0 (= false)
return
;define the context in which the mouse buttons should be inactive:
#If (Disable_Left_Right_Button = 1) ; Code below is only valid if the value of the variable is true.
; That means that if it's true, the mouse buttons are not going to work.
Lbutton::
RButton::
return
#If ; turns off the context sensitivity