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:

3 Responses to “Last.fm Global Hotkeys”

  1. 1
    xbtsw Says:

    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.

  2. 2
    White Shadow Says:

    Okay, fixed that. I’m uploading the new ZIP now.

  3. 3
    xbtsw Says:

    really fast reply.
    thanks for your work again :)

Leave a Reply