beginner: trying to write a plugin, need help to catch event

Discussion in 'General Development (no feature request here!)' started by mrmojo666, October 28, 2019.

  1. mrmojo666
    • Premium Supporter

    mrmojo666 MP Donator

    Joined:
    January 24, 2006
    Messages:
    595
    Likes Received:
    94
    Gender:
    Male
    Occupation:
    ALM
    Location:
    Turin
    Ratings:
    +141 / 0
    Home Country:
    Italy Italy
    Show System Specs
    Hi,

    I'm trying to develop a plugin



    I'm very very beginner , but at the moment I've already learn how to make plugin setup form in configuration.exe.
    Now i'm almost done to have a very simple process plugin. but i want to create a trigger that reacts when: or i press green button on MCE remote or when i press H button on keyboard etc.....
    Is it possible to catch events or actions or ....

    Thank you for any help

    my code is here : mrmojo666/marantz-control-mp-plugin
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,297
    Likes Received:
    6,249
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,270 / 9
    Home Country:
    France France
    Show System Specs
    Hi,

    I don't remember where but you can try to use/copy the code where MP uses this, I'm not a dev myself but I'm using existant code and trying to make it work while debugging.
    For sure I have seen this part of code because I have done something for Auto3D plugin, maybe you can look at this code to apply on your own, if I'm not wrong, I was able to attach a key to a menu (3D one) or add some key to it, I didn't remember exactly lol
     
    • Thank You! Thank You! x 1
  4. mrmojo666
    • Premium Supporter

    mrmojo666 MP Donator

    Joined:
    January 24, 2006
    Messages:
    595
    Likes Received:
    94
    Gender:
    Male
    Occupation:
    ALM
    Location:
    Turin
    Ratings:
    +141 / 0
    Home Country:
    Italy Italy
    Show System Specs
    in the end, I've already managed to react to action, by changing plugin from process to windows plugin..... I have to polish some things then i will create a thread on the plugin forum to share my work to other denon or maratz owners or to who wants to improve the plugin.

    Thank you
     
    • Like Like x 2
  5. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,297
    Likes Received:
    6,249
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,270 / 9
    Home Country:
    France France
    Show System Specs
    Great :) I have a denon :)

    Tapatalk
     
    Last edited: October 30, 2019
    • Like Like x 1
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!