ZuneKeys: Global Hotkey Support for Zune

Before the Zune software I used Winamp and one of the things I really liked was it’s Global Hotkey support, the ability to control the player using just hotkeys.  Ever since using the Zune I’ve found myself hitting Ctrl + Alt + Home to pause the player about a 100 times so instead of whining about it in yet another blog post I thought I’d actually do something.  It was a slow afternoon at work on a Friday so I whipped up this, ZuneKeys, global hotkey support for the Zune software.

Install

  1. Download ZuneKeys
  2. Unzip and copy somewhere, personally I use c:program fileszunekeys
  3. Run ZuneKeys.exe…
  4. …and Bob’s yer uncle!  Now you have global hotkey support for your Zune software.

I’d suggest adding ZuneKeys to your startup menu so it’s always available.

The Keys

Play Ctrl + Alt + Insert
Pause Ctrl + Alt + Home
Stop Ctrl + Alt + End
Previous Track Ctrl + Alt + Page Up
Next Track Ctrl + Alt + Page Down
Volume Up Ctrl + Alt + Up
Volume Down Ctrl + Alt + Down
Fast Forward Ctrl + Alt + Right
Rewind Ctrl + Alt + Left

 

How it Works

I’m basically sending the same commands that your fancy media keyboards send, except I don’t use media keyboards as they take up entirely too much space on my already cramped desk.  Nothing too magically here.  I’m pretty sure the Winamp one actually sends Winamp messages that it knows how to respond to but since the Zune software doesn’t *have* anything like that I’m sorta faking it.

There is no customization of hotkeys and it could probably do a lot more but I wanted to keep it as tiny as possible since I already seem to have a 100 other things running in the background trying to compete for my system’s resources.  If someone besides me actually uses this puppy I’m sure I could accommodate customized keys or other small enhancements.

This works with the Zune right now because that’s where I needed it but it could easily be adapted to work for Windows Media Player, iTunes, Winamp, etc.

Oh, it seems to work just fine under Vista and XP.

The (Open) Source

It’s written in Delphi as a standard Win32 application.  Since it’s Delphi that means the only thing you need is the EXE, no .NET or Java Virtual Machine needed here.  Since I avoided using the VCL and went old-school Windows app it’s only 30.5kb instead of the more usual 300kb Delphi app.  If you’d like the source just ask, I’ll put it some place public or give you access to my subversion repository.  A special thanks to IconBuffet as the icon I’m using is from one of their "Free Delivery" icon sets, Dresden Symphony.

ZuneKeys Source

UPDATED: Some people noticed that the source zip was missing ZuneKeys.inc.  Sorry for not having it there the first time.  I’ve updated the download with all the files I have in my source folder.  I’ll probably be moving this to Github or CodePlex so it’s more formally hosted and people can share their work.

  • http://www.facebook.com/profile.php?id=100000003922020 Nick Bolles

    hey this doesnt work when zune is minimized to the toolbar mode. is there a way to make it so it does?

    • http://www.facebook.com/profile.php?id=100000003922020 Nick Bolles

      huh. it is now. nvm haha well thank you i love this with my corsair m90 mouse its amazing!!!

  • http://www.facebook.com/szymonbakalarczyk Szymon Bakalarczyk

    amazing work! i would like to use it when zune is minimised, and use Fn key intead of ctrl + alt.

  • suomynonAx

    Seems like it only works when the zune window is focused.

    • suomynonAx

      Ah I figured it out. If you have the Mini Player, (which is always on top), the keystrokes will get sent to it. Doesn’t seem to work while its on the taskbar, or maximized but not focused. I would like to see customizable keys and taskbar player support.