This is a program that I have used with many changes from the old xp day\'s It\'s a cmd line program that will change track in media applications(Spotify,vlc,mediaPlayer) j
The problem is VS has the focus when the message is sent, you can only put this to work with the focus on the correct application.
To work around this put a Thread.Sleep before the call to keybd_event and F5 before the sleep and change the focus to the correct place in this time.
Thread.Sleep