如何使用 AutoHotkey 将 Shift+Space+Lbutton 重新映射到 Alt+Rbutton?

如何使用 AutoHotkey 将 Shift+Space+Lbutton 重新映射到 Alt+Rbutton?

我正在尝试重新映射软件快捷方式,ShiftSpaceLbuttonAltRbutton

我尝试了这个:

+SpaceLbutton::!Rbutton

我想要按住然后释放。

答案1

“Alt & RButton” 的作用类似于“Shift & Space & Lbutton”组合键:

!RButton::
   Send, % "{ShiftDown}{Space Down}{LButton Down}{ShiftUp}"
   KeyWait, RButton
   Send, % "{Space Up}{LButton Up}"
   Return

反之亦然:

$+Space::
   KeyWait, LButton, % "DT.175" ; adjust waiting time here
   Send, % (b:=ErrorLevel) ? "{Space Down}":"{AltDown}{RButton Down}{AltUp}"
   KeyWait, Space
   Send, % b ? "{Space Up}":"{RButton Up}"
   Return

相关内容