右键单击开始时禁用左键单击保持
Disable left click hold when right click starts
我试过了,但无法得到正确的结果。
如何在开始按住右键时禁用左键向下键?
rb=true
~$LButton::
while (GetKeyState("LButton", "P") and !rb)
{
continue
}
MsgBox,hi
Return
~$RButton::
rb=1
MsgBox,bye
while GetKeyState("RButton", "P") {
rb=1
continue
}
rb=0
Return
在按下 Rbutton 时,Lbutton 中的 while 循环不退出(仅在 Rbutton 释放时退出)!?为什么
Demonstration
不确定这是否是您要查找的内容,但根据评论:
“我正在按住 Lclick,一旦我开始按住 Rclick,我希望 Lclick 停止”
答案很简单:
~RButton::
if (GetKeyState("LButton"))
SendInput, {LButton Up}
return
我试过了,但无法得到正确的结果。 如何在开始按住右键时禁用左键向下键?
rb=true
~$LButton::
while (GetKeyState("LButton", "P") and !rb)
{
continue
}
MsgBox,hi
Return
~$RButton::
rb=1
MsgBox,bye
while GetKeyState("RButton", "P") {
rb=1
continue
}
rb=0
Return
在按下 Rbutton 时,Lbutton 中的 while 循环不退出(仅在 Rbutton 释放时退出)!?为什么
Demonstration
不确定这是否是您要查找的内容,但根据评论:
“我正在按住 Lclick,一旦我开始按住 Rclick,我希望 Lclick 停止”
答案很简单:
~RButton::
if (GetKeyState("LButton"))
SendInput, {LButton Up}
return