Skip to content

Instantly share code, notes, and snippets.

@JenkinsDev
Last active October 2, 2015 17:11
Show Gist options
  • Save JenkinsDev/5506c8202cc9b0b1c850 to your computer and use it in GitHub Desktop.
Save JenkinsDev/5506c8202cc9b0b1c850 to your computer and use it in GitHub Desktop.
Allows you to change Window 10's current virtual desktop by hitting CTRL + Direction. Uses AutoHotkey.
#NoEnv
#NoTrayIcon
#IfWinActive ahk_class WorkerW
^Right::^#Right
^Left::^#Left

##Using This Script:

  1. Download (and install) AutoHotkey. http://autohotkey.com/
  2. Create a new file, name it whatever you want, with the extension .ahk
  3. Add the script contents from above into your newly created file and save it.
  4. Double click the script and reap the benefits of a non-convoluted hotkey setup (imo).

##Making the script start on startup:

  1. Right-Click your .ahk script file and click the 'Compile Script' item within the context menu
  2. Hit the Windows-Key on your keyboard and type 'Run' and hit enter.
  3. Type shell:startup in the new window and hit enter.
  4. Drag-And-Drop your compiled script into the explorer window that pops-up.
  5. Reap the benefits of not having to start your script everytime you start windows

Note: In order for your new hotkey setup to work you must make your desktop active. Do this by click on your desktop and then hitting the hotkey. This is 'required' because if you were to attempt to quickly move your mouse across text with the CRTL + Direction hotkey within a browser, file, etc. then it would override that functionality and switch your active virtual desktop. No-Beuno

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment