Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've got a laptop running Windows 7, and it's usually playing music. It's not in a secure location, so I like to lock the screen when I'm not actively using it. When I lock the screen, the media keys no longer work, so I can't control the music, which I'd still like to be able to do when it's locked. The volume buttons work, but play/pause, next, previous, and stop do not.

Microsoft's recommendation is to simply disable your lock screen. Thanks, but no thanks. There was a similar question on this site a while ago that mentions using psexec. This looks promising, but it's not a complete solution. Is there maybe a program I could run through that that would just pass media keys through to running applications when the screen is locked? I'd prefer an application-agnostic solution that would simply emulate media keys to whatever's running.

share|improve this question

Essentially you will have to write a Program which will run on your Lock-Screen and communicates with Winamp.

I think the easiest way will be to search for some regular Remote-Control Program for Winamp (I think it most likely will have to use a Network-Port, because I don't think you Program can send COM-Commands to another Desktop from the Lockscreen - but I'm not sure...)

You can just run the Remote-Control Program on your lock-screen, which connects to you winamp via localhost and you can even use the provided Interface, which will then appear on your lockscreen to control Winamp or use the Media-keys if the Remote-Control program supports them.

share|improve this answer
The question I linked to mentioned Winamp, but that's not what I'm using. At the moment it's Spotify I'd like to control, but ideally I'd like complete media key emulation that would work with anything that listens for media keys. – Dan Mar 10 '14 at 20:08
As far as I could read it - sending Keystrokes to the disabled Desktop can be tricky... I think the best approach would be a script with 2 Parts - One running on the Lockscreen, reading Keyboard-Input and sending these inputs via TCP to localhost. The second is a Script running on the real,hidden desktop and listens on localhost for messages from the first script and uses SendInput to spotify – Falco Mar 11 '14 at 14:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .