home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
How to execute some code when a function is called inside MediaPortal
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="TioSolid" data-source="post: 498385" data-attributes="member: 89892"><p>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?</p><p></p><p>This is what I want to do:</p><p>1. User install and setup the plugin;</p><p>2. User Open MediaPortal, goes to My TV (for example);</p><p>3. When user send the key to Pause (Space), my plugin need to run some code;</p><p></p><p>In pseudo</p><p>[CODE]</p><p>#keep listening</p><p>#user press Space</p><p>if (key_pressed == space && window_id == "My TV")</p><p> #some magic goes here</p><p>[/CODE]</p><p></p><p>How can I do that?</p></blockquote><p></p>
[QUOTE="TioSolid, post: 498385, member: 89892"] 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 [/CODE] How can I do that? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
How to execute some code when a function is called inside MediaPortal
Contact us
RSS
Top
Bottom