Saturday, July 20, 2019

Windows 10: Change shortcut keys to switch between desktops




In Windows 10, the shortcut keys for switching virtual desktop are ctrl + win + right / left arrow. I'd like to simplify it, by changing it to ctrl + right or left arrow key only. How can I do this?


Answer



AutoHotkey is a great program for doing this exact type of thing. It is an very useful program for remapping keyboard keys, letting you set up hotkeys, and automating tasks. Here are the steps to set this up:





  1. Download AutoHotkey (http://www.autohotkey.com/) and install it.

  2. Right-click on your desktop > New > Autohotkey Script (name it whatever you want).

  3. Right-click, Edit Script.

  4. Paste the following text under the already-present text:



#NoTrayIcon
^Right::^#Right
^Left::^#Left





  1. Save and run the script to test its functionality.

  2. If it performs as expected, copy the script into the startup folder* so that it will run every time your computer starts.



Optionally, you can compile the script to run as a standalone .exe that can be run on other computers that don't have AutoHotkey installed. To do this, right-click the script file, and click "Compile Script."



*To access the startup folder in Windows 10, open "Run" (either press Windows Key + R, or search for it in the start menu) and type either (without quotes): "shell:startup" (to run the script for just the current user) or "shell:common startup" (to run it for all users). Paste it in the folder that opens.


No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...