How can I change the keys to change desktop in windows 10 with autohotkey?

爱⌒轻易说出口 提交于 2019-12-06 02:54:38

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}

You can easily switch between two virtual desktops in Windows 10 by using Ctrl+Win+ or Ctrl+Win+ shortcuts.

But to make this even simpler and easy to use I’ve made this Autohotkey script to toggle betweeen two virtual desktops by just using the (`) key which is the least used key in keyboard.

`::
if (Toggle := !Toggle)
    Send #^{right}
else
    Send #^{left}
return

Note:- This script works for switching between two desktops only. For creating another virtual desktop you can use the shortcut Ctrl+Win+D.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!