如何使用自动热键更改 Windows 10 中更改桌面的键?
Windows 10 终于有多个桌面了,你可以用 ctrl+win+right(或 left>) 键.这是一个不错的功能,但是您有两个使用两只手来切换桌面.我正在尝试使用 autohotkey 映射这样的键,这样我就可以只用一只手,而将另一只手放在鼠标上..
Windows 10 has finally multi desktops, you can switch desktops with ctrl+win+right (or left) keys. It's a nice feature, but you have two use two hands to switch desktops. I'm trying to map the keys like this with autohotkey so I can use just one hand and keep the other one in the mouse..
ctrl + mouse wheel up --> ctrl + win + right
ctrl + mouse wheel down --> ctrl + win + left
出现消息框,所以 ctrl + 滚轮正在工作,但它不会切换桌面.
the message box comes up so the ctrl + wheel up is working, but it doesn't switches desktops.
~LControl & WheelUp::
MsgBox, Go to desktop right.
Send, {ctrl up}{lwin ctrl righ}
return
~LControl & WheelDown::
MsgBox, Go to desktop left.
Send, {ctrl up}{lwin ctrl left}
return
知道为什么这不起作用吗?.
Any idea why is this not working?.
Inside {}
只需要指定一个键,我认为不需要传递修饰符 ~
:
Inside {}
only one key should be specified and I think there's no need for passthrough modifier ~
:
LCtrl & WheelUp::Send, {LCtrl up}{LWin down}{LCtrl down}{Right}{LWin up}{LCtrl up}
LCtrl & WheelDown::Send, {LCtrl up}{LWin down}{LCtrl down}{Left}{LWin up}{LCtrl up}
也许 修饰键的标准语法 也可以在不为 LCtrl
键:
Maybe the standard syntax for modifier keys will also work without sending up-event for LCtrl
key:
LCtrl & WheelUp::Send, #{Right}
LCtrl & WheelDown::Send, #{Left}