MediaPortal Wiki > MediaPortal 1 > Extensions > Plugins > IRSS (IR Server Suite) > MP1 Plugins > MP Control Plugin > Event Mapping

Event Mapping

Was this page helpful?
Redirected from IRServerSuite/MP Control plugin/Event Mapping
    Table of contents
    No headers
    edit.png

    On 20 Sep 2010, chefkoch suggested that this page or content is incomplete and needs to be expanded.

    With the event mapper you can now match a parameter of a GUI Message and only execute the mapping if the message type and parameter match. One of the many things this lets us do is create new buttons in a skin and then have them blast ir codes or macros. Here's a quick example:

    new_button.png

    Place this code in your skins "myvideos.xml" to add a new button:

    • <control>
        <description>Blast IR</description>
        <type>button</type>
        <id>818181</id>
        <label>818181</label>
      </control>

    Place this code in your "strings.xml" to add the label for the button:

    • <string>
        <id>818181</id>
        <value>Blast IR</value>
      </string>

    Now, set up the event mapper to watch for "Clicked" events and match the "Sender Control ID" parameter to "818181". With this in place you will now have a fully programmable button in your skin. It can blast IR, send serial commands, launch external apps, etc ...




    Go to top
    Powered by MindTouch
    Running the latest version?
    V1.2.3 - released April 2012
    Releasenews | Download
    Changelog
     | Requirements
    opensource-logoTeam-MediaPortal 
    About
    Contact |  Press
    Partners