OnPause-event doesn't always fire when using keyboard keys

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: OnPause-event doesn't always fire when using keyboard keys

OnPause-event doesn't always fire when using keyboard keys

by ninov » Sat May 24, 2014 6:59 am

Hello,
I'm using the MediaMonkey COM interface in a C#-programm.
Now, I use this example code to detect a play/pause-change:

Code: Select all

[...]
SDB.OnPause += OnPauseEvent;
[...]
private void OnPauseEvent()
        {
            Debug.WriteLine("OnPause");
        }
Everything works fine when I'm using the play/pause button in MediaMonkey or the Play/Pause-button on my keyboard when MediaMonkey is open.
But when I minimize MediaMonkey and use the button on my keyboard, the event doesn't fire all the time, but only about each fifth time I press the button.

Top