I am using WPF and I have imported the system. Windows.Form Reference Here is my code:
process [] process = process. Get process action ("wmplayer"); SetForegroundWindow (process [0] .MainWindowHandle); Thread.Sleep (200); System.Windows.Forms.SendKeys.Send ("^ P"); Windows Media Player focuses, but no keystrokes are received. You can use WinAPI instead of SendKeys:
[
Comments
Post a Comment