Say I want the hotkeys "Winkey + F1", "Winkey + F2" and "Winkey + F3" (so that you only need one hand) to switch between headphones, speakers and monitor audio output. I'd also like headphones to be default on startup.
The answer will be posted below!
If you haven't already, download AutoHotKey version 2 from here (exe) or here (zip).
Download and install NirCmd from here (x64) or here. Copy the path to nircmd.exe.
Create an .ahk file (e.g. ChangeAudioOutput_NirCmd.ahk) with the following content, while making sure that in the code at line 21 you change
C:\your\path\to\nircmd.exeto where you installed nircmd.exe:Make sure your desired audio devices are called exactly "Headphones" and "Speakers" in the Sound Control Panel. To get there:
In order for this to work also after you restart your PC, do the following:
All done!