Skip to content

Instantly share code, notes, and snippets.

@pulimento
Created August 31, 2021 11:14
Show Gist options
  • Save pulimento/2819c47189fabf39090d909b8b982ceb to your computer and use it in GitHub Desktop.
Save pulimento/2819c47189fabf39090d909b8b982ceb to your computer and use it in GitHub Desktop.
Configure Media Shortcuts with AutoHotKey. Run it in a hidden cmd window
;MEDIA CONTROL SHORTCUTS, TO BE USED WITH AUTOHOTKEY
;"CTRL + ALT + PageUp" for previous
^!PgUp::Media_Prev
;"CTRL + ALT + PageDown" for next
^!PgDn::Media_Next
;"CTRL + ALT + HOME" for play/pause
^!Home::Media_Play_Pause
AutoHotKeyU64.exe AHKMediaControls.ahk
exit 0
'Execute a batch file without a command line window. Ideal to execute at startup
CreateObject("Wscript.Shell").Run "RunAHKMediaControls.cmd", 0, True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment