How to execute some code when a function is called inside MediaPortal (1 Viewer)

TioSolid

Portal Member
March 21, 2009
38
2
Hi! I would like to develop a small plugin that "listen" to events in mediaportal and run an arbitrary code. How Can I do that?

This is what I want to do:
1. User install and setup the plugin;
2. User Open MediaPortal, goes to My TV (for example);
3. When user send the key to Pause (Space), my plugin need to run some code;

In pseudo
Code:
#keep listening
#user press Space
if (key_pressed == space && window_id == "My TV")
 #some magic goes here

How can I do that?
 

Users who are viewing this thread

Top Bottom