如何使用自动热键更改 Windows 10 中更改桌面的键? [英] How can I change the keys to change desktop in windows 10 with autohotkey?

查看:29
本文介绍了如何使用自动热键更改 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}

这篇关于如何使用自动热键更改 Windows 10 中更改桌面的键?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆