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.
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]
[...]
SDB.OnPause += OnPauseEvent;
[...]
private void OnPauseEvent()
{
Debug.WriteLine("OnPause");
}
[/code]
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.