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

This forum is for questions / discussions regarding development of addons / tweaks for MediaMonkey for Windows 4.

Moderators: Gurus, Addon Administrators

ninov
Posts: 5
Joined: Sun Oct 20, 2013 8:47 am

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

Post by ninov »

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.