sdias / win-10-virtual-desktop-enhancer

An application that enhances the Windows 10 multiple desktops feature by adding additional keyboard shortcuts and support for multiple wallpapers.
MIT License
1.77k stars 269 forks source link

[Request] Single key desktop switching #80

Open ascii78 opened 7 years ago

ascii78 commented 7 years ago

It would be nice to directly switch to a desktop with one key, I've used F1-F4 keys in the past, is this possible ?

GioBonvi commented 7 years ago

Hello @ascii78,

what you are asking for is not possible at the moment (version beta 0.11.1) and I don't know if it would be feasible to implement it in any future version (it would probably require some heavy work to be done in the settings configuration, which would cause trouble when updating from an old version).
Maybe @sdias could give you some more details on this.

lord-ne commented 6 years ago

Insert this code anywhere in the script:

F1:: SwitchToDesktop(1) Return

EDIT: Actually, make sure to insert this code below the auto-execute section. Put it in the "Functions" section just to be safe.