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'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

1 Answer 1

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 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 at 14:45

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.