Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a Microsoft Natural keyboard that has a slew of media keys on it. Currently they are mapped to play/pause/next/previous functions in Winamp.

I've started using Rainmeter and found a nice little config that I'd like to use in place of having Winamp in the foreground all of the time.

The issue I'm finding is that if Winamp is minimized (but still playing), then my media keys no longer work.

Is it possible to continue to use my media keys with Winamp minimized...so that I can have my Rainmeter config in the foreground?

I'd rather not have both of them visible at the same time. I'm using Windows XP Pro with Rainmeter 1.1.

share|improve this question

2 Answers 2

up vote 2 down vote accepted
+100

I use Global Hotkeys in Winamp (they're in Options -> General Preferences). I've set my play hotkey to Ctrl + Alt + X, for instance; this key combination works from any app, wherever I am, even when Winamp is minimized.

You can also set your multimedia keys as Global Hotkeys. This should allow you to control Winamp, even when it's minimized.

share|improve this answer
    
it seems that winamp doesn't recognize the keypresses for setting global hot keys....any idea how to get around this? –  espais Nov 12 '09 at 14:29
    
It's a bit strange. It should work; I've got a Microsoft wireless keyboard and it works without a problem. If you really want global hotkeys, you can just create something like what I use, Ctrl + Alt + the first 5 lower left keys . –  alex Nov 12 '09 at 14:42
    
yes, very strange....its setup in the keyboard options as play/pause media tracks, and the back/forward keys are set to prev/next track...i've tried disabling those options there as well, and yet winamp still doesn't see it as a keypress...very odd –  espais Nov 12 '09 at 15:34
    
nice suggestion on the global hotkeys, i strangely like it more than using my media buttons :) –  espais Nov 19 '09 at 6:55
    
I've got media buttons on my keyboard as well, but I ignore them. It seems easier to just press Ctrl + Alt + something :). Glad to know it solved your problem. –  alex Nov 19 '09 at 10:56

You can do this using AutoHotkey. It's designed to do exactly what you're asking. It's a simple scripting language that can bind actions to keys.

Here's a very simple example


^!p::
IfWinNotExist ahk_class Winamp v1.x
    return
; Otherwise, the above has set the "last found" window for use below.
ControlSend, ahk_parent, c  ; Pause/Unpause
return

This will cause Alt-Shift-P to send a "c" key to Winamp causing it to pause. It is possible to map the key to anything on your system. I think you can replace ^!p with {Media_Play_Pause} to use multimedia. I don't have one of those fancy keyboards.

Here are some multimedia keys AutoHotkey supports:

Browser_Back
Browser_Forward
Browser_Refresh
Browser_Stop
Browser_Search
Browser_Favorites
Browser_Home
Volume_Mute
Volume_Down
Volume_Up
Media_Next
Media_Prev
Media_Stop
Media_Play_Pause
Launch_Mail
Launch_Media
Launch_App1
Launch_App2

Here are more details: http://www.autohotkey.com/docs/misc/Winamp.htm

share|improve this answer
    
thanks for the info, however i started using the global hotkeys and found i actually like them better! –  espais Nov 19 '09 at 6:56

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.