Skip to content

Instantly share code, notes, and snippets.

@skunkworker
Last active November 16, 2018 02:34
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 skunkworker/db17f1cd8a34522fd036fbf44cbc1151 to your computer and use it in GitHub Desktop.
Save skunkworker/db17f1cd8a34522fd036fbf44cbc1151 to your computer and use it in GitHub Desktop.
AutoHotkey mac keyboard play/pause, back/next, volume up, down, mute
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #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.
;F10
^F10::
Sendinput, {F10}
Return
F10::Send {Volume_Mute}
;F11 Fullscreen
Sendinput, {F11}
Return
F11::Send {Volume_Down 5}
;F12
Sendinput, {F12}
Return
F12::Send {Volume_Up 5}
;F8 play/pause
Sendinput, {F8}
return
F8::Send {Media_Play_Pause}
;F7
Sendinput, {F7}
return
F7::Send {Media_Prev}
;F9
Sendinput, {F9}
return
F9::Send {Media_Next}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment