Last.fm Global Hotkeys
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.
Features
- 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.
- Screenshot.
Download
lastfm_global_hotkeys.zip (559 KB)
I’ve only tested the application with Last.fm player 1.5.2.38918 on Windows XP. I have no idea whether it’ll work with other versions. Use at your own risk.
Known Issues
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 :
August 19th, 2008 at 5:35 am
This is really great. Thanks for your great work.
I found a small bug when using under vista sp1 (UAC disabled).
when toggle “load on startup” all hotkeys stop function.
August 19th, 2008 at 12:50 pm
Okay, fixed that. I’m uploading the new ZIP now.
August 19th, 2008 at 12:53 pm
really fast reply.
thanks for your work again
September 8th, 2008 at 5:23 pm
don´t work for me… when I use a shortcut, I just listen to a beep and nothing works
September 8th, 2008 at 5:35 pm
Well, this app isn’t really anywhere near bug-free
All I can suggest is restarting both Last.fm and this program, might help sometimes.
September 8th, 2008 at 5:44 pm
Hi, I do this… and just start working
Don´t know why… but now works…
If you accept some requests… Well… Maybe a mute hotkey… and control with the global hotkeys (like play, stop, skip, etc… some keyboards have this..) will be amazing!!
Sorry for the english!
September 8th, 2008 at 5:53 pm
Probably can’t do a mute hotkey because the “mute” icon in the player isn’t really a button, just a part of the “volume control” component. Might be hard to hit it programmatically.
As for media keys (I think that’s what they are called) on certain keyboards, I would support them if I could… But there’s no documented way to access them in the programming language that I used. It probably can be done (in theory), but I don’t know how.
September 8th, 2008 at 6:13 pm
I don´t know how do you access the buttons…. but maybe you find some useful information about the media buttons (or any other acces to buttons) with the AutoHotkey software… there is a interesting post on last.fm forum: http://www.lastfm.com.br/user/andymantell/journal/2006/09/01/3ak1_use_your_media_keyboard_buttons_with_the_last.fm_player%21#shoutbox
I try this… but don´t work for me…. But maybe you understand better how to make it work.
September 10th, 2008 at 3:20 am
Finally looked at the link. The approach described in there would probably work, but it would cause the Last.FM window to activate & deactivate every time you pressed a hotkey. I think that would be annoying and would cause problems with fullscreen applications (i.e. games).
November 21st, 2008 at 1:59 am
Excellent, thank you for this useful utility. I can now use my phone to control the Last.fm player, as I have been doing with Winamp.