Technical Article

How to use Auto Hot Key to manage windows and virtual desktops on Windows 10 and 11

Easily manage windows on virtual desktop with NumPad 1, 2, 3

We can use VD.ahk as a solution to enhance Windows virtual desktop workflow.

You need to:

  • install: Auto Hot Key version 2 is ideal
  • Create a new script and paste the contents of VD.ah2 to your Libs folder
  • create a new script and paste the contents of VD example.ah2 from v2_port branch
    • Double check that the #Include line references your lib file correctly ie. (#Include %A_LineFile%\..\Lib\VD.ah2)
  • Run the script to activate it. If it’s running correctly it should show an AHK icon in the tray bar

Note: If you want it to run automatically on Windows startup you can just create a shortcut for it on you Start up path.

  • Usually here is good enough for all users C:\ProgramData\Microsoft\Windows\Start Menu\Programs. More info here
  • and include a shortcut to VD example.ahk