Do you rate your tracks in iTunes? Ever find it a slight pain to swap back over to iTunes while working on something important just to rate a playing track? Here’s how to set up global hotkeys to rate a track from anywhere (Windows XP or newer). Like Win+Alt+1 for one star, Win+Alt+2 for two, etc.
- Get the Tools
Have a master AutoHotKey hotkey file and set PowerShell to autoload my little
library on PowerShell startup. With these two it makes it real easy to assign hotkeys to various iTunes commands.
- Add the AutoHotkey Lines
What enables this line to be so simple is that there is a
function in the above
file that gets auto loaded as part of step 1.
; Rate the currently playing song 1 to 5 stars with Win+Alt+#
#!1:: Run powershell -command (itunes).CurrentTrack.Rating = 20,,Hide
#!2:: Run powershell -command (itunes).CurrentTrack.Rating = 40,,Hide
#!3:: Run powershell -command (itunes).CurrentTrack.Rating = 60,,Hide
#!4:: Run powershell -command (itunes).CurrentTrack.Rating = 80,,Hide
#!5:: Run powershell -command (itunes).CurrentTrack.Rating = 100,,Hide
That’s it! Then with just one keystroke you can rate the current song from any app without switching over to iTunes.
My full script: MediaKeys.ahk
Related posts: Hotkey to Instantly Play Music in iTunes, Hotkey to Play/Pause/Next iTunes Tracks