I'm not planning to program a plug-in. I'm looking for API's to control MC.
So far I used MCC Commands and Keyboard Commands. Some commands as Play/Pause are available in both. Others like "/Append selected" are available as Command Line Commands only. And to navigate through views I have to send Keyboard codes like Cursor Up/Dn.
As long as MC is the active Application (in front) it works well. But as soon another application (on a different monitor) is active it becomes complicated. Keyboard commands are then interpreted from the 'wrong' application. Until you find out, that 'Backspace' does nothing in TheaterView, you might have deleted a lot somewhere else.
I built a Media keyboard with the only purpose to control MediaCenter like a CD carousel without a mouse, keyboard or touch. Until now, it is acting as a USB HID Keyboard. The key handling is defined in Resource.XML
Alternatively the Media keyboard could communicate through VirtualComPort (CDC) with a Win10 application. And this application should be able to control MC even it is in background.
Question:
How can I send a keycode to MC when it is in background, without bringing it in front ?
Is it possible to call the functions associated with keyboard or menu actions directy ?