0
Answer

C# Emulate Keyboard Media Buttons

Ask a question
Al

Al

13y
10.9k
1
From my application I'm trying to emulate a keyboard press of the Media Play/Pause button ( System.Windows.Forms.Keys.MediaPlayPause ). I want this to act like the keyboard, when I use it it will pause Windows Media Player, or make it start playing again. Any idea how to go about that? I've tried using SendKeys.Send(), and tried to P/Invoke the keybd_event in user32.dll and no luck there.