GUIWindowManager is from the MediaPortal core, the SendThreadMessage function just fires a message into MediaPortal for the relevant component to pick up and act on it.
If you trace the GUIMessage.MessageType.GUI_MSG_PLAY_FILE through the MediaPortal source you'll see where it gets acted on.
You should definitely change your plugin from Window to Process, this will help a lot.
I haven't done enough testing on the play file message yet, but I think to use it correctly you need to go to the relevant window first... It's still early days for my Telnet Interface.
I'll see what I can do with it and then reply on your "Play file" thread.
Good luck with it all, |