Skip to content

Instantly share code, notes, and snippets.

@joshuah345
Created October 5, 2021 03:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshuah345/ec25515fffec98ff2ca90fa73076629e to your computer and use it in GitHub Desktop.
Save joshuah345/ec25515fffec98ff2ca90fa73076629e to your computer and use it in GitHub Desktop.
AHK Media Keys (Magicforce 68 inspired)
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#SingleInstance, ignore ; Only allows this script to have one instance.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; Media Keys
; Volume up
>!m::
Send, {Volume_Up}
Return
;Volume Down
>!n::
Send, {Volume_Down}
Return
;Mute
>!b::
Send, {Volume_Mute}
Return
; Play/Pause
>!x::
Send, {Media_Play_Pause}
Return
>!z::
Send, {Media_Prev}
Return
>!c::
Send, {Media_Next}
Return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment