I am trying to create a media player controller that works while running in the background and without knowing if there is any receiver, just like pressing a key on the keyboard like the next track
media key.
I have tried using keybd_event
, SendInput
or http://inputsimulator.codeplex.com/ but it only wsender window is in focus.
Is there any way to simulate a keyboard press like VK_MEDIA_NEXT_TRACK
without having the sender window in focus?