How do non-GUI plugins receive messages? (2 Viewers)

A

Anonymous

Guest
Hi!
I try to develop an LCD plugin. This plugin has of course no GUI, but has to receive messages from other plugins and from MP itself. Any idea on how this can be done?
 

Frodo

Retired Team Member
  • Premium Supporter
  • April 22, 2004
    1,518
    121
    53
    The Netherlands
    Home Country
    Netherlands Netherlands
    yes.
    simply register yourself by:
    Code:
    public void override Start()
    {
       GUIWindowManager.Receivers += new SendMessageHandler(OnMessage);
    }
    
    private void OnMessage(GUIMessage message)
    {
        switch (message.Message)
        {
           // do your stuff here
        }
    }
     

    Users who are viewing this thread


    Write your reply...

    Similar threads

    Hi This is a general question about OnX. I have been using the TvWishList plugin for a while and have recently updated (update install) from MP 1.36 x86 to 1.37 x86 and found there seemed to be no Onx menu in the TV guide. I then configured the onx.presets.xml file like I would normally do with updates or fresh installs, but still...
    Hi This is a general question about OnX. I have been using the TvWishList plugin for a while and have recently updated (update...
    Hi This is a general question about OnX. I have been using the TvWishList plugin for a while and have recently updated (update...
    Replies
    0
    Views
    223
    Attached are new TV service logs with your latest DLL. I see lots of EPG events and none of the messages from earlier. Congratulations!
    Attached are new TV service logs with your latest DLL. I see lots of EPG events and none of the messages from earlier. Congratulations!
    I have some weird behavior trying to operate the MP GUI in a new installation of MP 1.36 under Windows 11 Pro. Some of the remote...
    Replies
    33
    Views
    3K
    When I am trying to get some hardware or software to work and I am experiencing problems, my usual procedure is: simplify, simplify, simplify. That means avoid making choices that may not work; instead make the "standard" choice, which is often simply accepting the default. A static IP address is known to work with MP1. An address...
    When I am trying to get some hardware or software to work and I am experiencing problems, my usual procedure is: simplify...
    As an "almost" beginner, I have just installed MP1 client and server v 1.37 unders Windows 11 in a brand new PC. The server is...
    Replies
    4
    Views
    457
    Hello, Name need to be the same as computer name. Also, logs could be useful.
    Hello, Name need to be the same as computer name. Also, logs could be useful.
    It is a bit of a long story! I successfully installed MP2 on my old PC as client/server with client on my laptop to confirm my...
    Replies
    2
    Views
    190
    • Sticky
    MP 1.37 Final (Willow) Bugfix II released, download links updated...
    MP 1.37 Final (Willow) Bugfix II released, download links updated...
    We have just released MediaPortal 1.37 - Willow x86 and x64 version. Highlights of this release Bugfixes: [MP1-5232] - GPU...
    Replies
    4
    Views
    1K
    Top Bottom