magnify
formats

Global Hotkeys to Play/Pause/Next iTunes Tracks

Published on August 23, 2011

(Windows) If your keyboard doesn’t have media keys (like my MacBook or fav Dell keyboard), then its nice to have simple global hotkeys to play/pause a track, move to the next track, and maybe even increase/decrease volume.

Below is the script that will assign these keys:

  • Play/Pause: Win+Alt+Space or Win+Alt+Left
  • Next Track: Win+Alt+Right
  • Volume Up: Win+Alt+Up
  • Volume Down: Win+Alt+Down

AutoHotkey makes this real easy! Just add this to your .ahk AutoHotkey file.  Download the script: MediaKeys.ahk

; Media Keys AutoHotkey Script by Noah Coad, started in 2008, http://coad.net

; #=Win ^=Ctrl +=Shift !=Alt

; Volume Up & Down, Win+Alt+Up & Win+Alt+Down
#!Up::  send {Volume_Up}
#!Down::  send {Volume_Down}

; Media Pause/Play, Win+Alt+Space or Win+Alt+Left
#!Space::
#!Left::
Media_Play_Pause:: IfWinExist, iTunes ahk_class ITWindow { ControlSend ahk_parent, {shift} sleep 100 ControlSend ahk_parent, ^{space} } else { Suspend On SendPlay {Media_Play_Pause} Suspend Off } return ; Media Next, Win+Alt+Right #!Right:: Media_Next:: IfWinExist, iTunes ahk_class ITWindow { ControlSend ahk_parent, {shift} sleep 100 ControlSend ahk_parent, ^{right} } else { Suspend On SendInput {Media_Next} Suspend Off } return

Related posts:

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
No Comments  comments 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>