Skip to content

Instantly share code, notes, and snippets.

@alfeugds
Last active September 25, 2023 14:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alfeugds/ebb2265b17de0e227691d0e08ed57bd8 to your computer and use it in GitHub Desktop.
Save alfeugds/ebb2265b17de0e227691d0e08ed57bd8 to your computer and use it in GitHub Desktop.
AutoHotkey - Media keyboard shortcuts

AutoHotkey - Media keyboard shortcuts

Control media with easy to remember keyboard shortcuts.

Even if you have a keyboard with dedicated media buttons, you'll find these keyboard shortcuts a lot easier to control the media on your computer.

  • Alt + Shift + Space : Pause/Play

  • Alt + Shift + n : Next

  • Alt + Shift + p : Previous

  • Alt + Shift + m : Mute

  • Alt + Shift + + : Volume up

  • Alt + Shift + - : Volume down

  • Ctrl + ` : Esc

Note:

Select the script according to the installed version of AutoHotkey (V1.x or V2.x)

; AutoHotkey Media Keys
!+Space::Send {Media_Play_Pause}
!+n::Send {Media_Next}
!+p::Send {Media_Prev}
!+m::Send {Volume_Mute}
!+=::Send {Volume_Up}
!+-::Send {Volume_Down}
^`::Send {Esc}
#Requires AutoHotkey v2.0
; AutoHotkey Media Keys
!+Space::Send "{Media_Play_Pause}"
!+n::Send "{Media_Next}"
!+p::Send "{Media_Prev}"
!+m::Send "{Volume_Mute}"
!+=::Send "{Volume_Up}"
!+-::Send "{Volume_Down}"
^`::Send "{Esc}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment