按住鼠标左键并单击鼠标右键自动热键?

时间:2018-11-29 10:19:03

标签: autohotkey

我想要一个脚本,其中按住鼠标左键并单击向右可运行键盘快捷键ctrl + win +向右箭头(将桌面切换到右侧),反之亦然。我该怎么办?

1 个答案:

答案 0 :(得分:0)

 ; switch to next virtual desktop
~LButton & RButton::SendEvent {LWin down}{LCtrl down}{Right down}{LWin up}{LCtrl up}{Right up}

; switch to previous virtual desktop
~RButton & LButton::SendEvent {LWin down}{LCtrl down}{Left down}{LWin up}{LCtrl up}{Left up}