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

Okay, this is admittedly a little obscure.

I have a standard Microsoft keyboard that includes 'media' keys - play/pause and volume adjust / mute. If Windows Media Player is open, pressing these keys triggers the appropriate action, even if the player doesn't have focus. This is good.

What's not good is if I have an mp3 file selected in windows explorer, pressing the 'play' button on my keyboard opens that file in Windows Media Player - even if the player is already in the middle of playing something else.

I only want to disabled the 'pressing the play key opens currently selected file in media player' functionality, not the 'pressing the play key makes media player play what's already in the playlist' - is this possible?

share|improve this question

Here is a small AHK script I wrote if you are interested in going that way.

; Check if Active Window is File Explorer
#IfWinActive ahk_class CabinetWClass ahk_exe explorer.exe
    Media_Play_Pause::
        ; Set Windows Taskbar as Active Window
        WinActivate ahk_class Shell_TrayWnd ahk_exe explorer.exe
        ; Send the hotkey
        SendInput {Media_Play_Pause}
        ; Set focus back to File Explorer
        WinActivate ahk_class CabinetWClass ahk_exe explorer.exe
    Return
; #IfWinActive in next line is important
#IfWinActive 
share|improve this answer
    
I actually really appreciate the somewhat hacky solution - I'm not sure how far I feel like diving into AHK at the moment, but I will add this to my todo list. thanks! – matt lohkamp Apr 1 at 23:58

You must log in to answer this question.

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