Skip to content

Instantly share code, notes, and snippets.

@Chailotl
Last active February 1, 2022 22:38
Show Gist options
  • Save Chailotl/6a41a29ef4000f9c78a6a718ed6111b3 to your computer and use it in GitHub Desktop.
Save Chailotl/6a41a29ef4000f9c78a6a718ed6111b3 to your computer and use it in GitHub Desktop.
When using virtual audio cables, volume keys will not work correctly. This uses AutoHotKey and nircmd to remap the volume keys to control a different mixer.
Volume_Up::
Run, nircmd.exe changesysvolume 1310 Headphones 0
Return
Volume_Down::
Run, nircmd.exe changesysvolume -1310 Headphones 0
Return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment