Last.fm doesn’t have out-of-the-box support for global hotkeys, which I think are a requirement for any music player. So I created a simple tool that will let you control the Last.fm for Windows app through global hotkeys.
- Hotkeys for Skip, Love, Ban, Tag, Share and Add to playlist. Plus a buggy hotkey for Play/Stop, too 🙂
- Define your own key combinations.
- Minimize to system tray.
- Supports autorun.
- Portable. Settings will be saved in lastfm_hotkeys.ini in the program’s folder. If the .ini file is not found settings will be saved in the registry.
lastfm_global_hotkeys.zip (559 KB)
I’ve only tested the application with Last.fm player 126.96.36.199918 on Windows XP. I have no idea whether it’ll work with other versions. Use at your own risk.
For some inexplicable reason the “Play/Stop” button in Last.fm behaves differently than the other buttons when I try to click it programmaticaly. Sometimes it gets stuck in disabled (grayed out) mode. I wasted two days trying to figure it out and got nowhere, so I’ve decided to leave it unfixed for now.
<rant>The Last.fm app uses the Qt framework which makes it very hard to control it externally. Things that look like buttons aren’t really buttons from the Windows API point of view, etc. Maybe an extension DLL would be a better solution, but I currently don’t feel like plodding through the Last.fm source code to figure out how to make an extension. Maybe someday.</rant>Related posts :