Add global keyboard shortcuts to iTunes with AutoHotkey Script
iTunes is good at media management, especially with its auto playlist. However, it’s not very convenient for playing music, as there’s no global keyboard shortcuts while iTunes is minimized.
An AutoHotkey Script (AutoHotkey for iTunes) gives iTunes this indispensable feature, you can download it from here.
I merged it with my existing AutoHotkey script, and now I can use keyboard to navigate and rate music.
(Track’s information is shown at the corner)

Article is the best what I saw before. Thx u a lot