如何在Windows 10中使用autohotkey更改密钥以更改桌面? [英] How can I change the keys to change desktop in windows 10 with autohotkey?
问题描述
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 {}
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}
也许修饰符键的标准语法也可以工作,而无需发送
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}
这篇关于如何在Windows 10中使用autohotkey更改密钥以更改桌面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!