How do non-GUI plugins receive messages? (1 Viewer)

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
    52
    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

    Similar threads

    Having exactly this issue upon performing a clean install of MediaPortal 1.34 64 bit on a clean Windows 11 install, off to try 1.33
    Having exactly this issue upon performing a clean install of MediaPortal 1.34 64 bit on a clean Windows 11 install, off to try 1.33
    Hi, went from a 1.29 install (working, reinstalled for other reasons) on a fairly fresh and fully updated Windows 10 system for a...
    Replies
    1
    Views
    406
    Look for all GUI Exif properties: MediaPortal-1/mediaportal/Core/Util/ExifExtensions.cs at 58c955866fb54a8c293afe525862bbb50c8f7b28 · MediaPortal/MediaPortal-1 And: https://forum.team-mediaportal.com/threads/4986-add-to-mypictures-plugin-ability-to-search-view-by-keyword.133895/post-1273275
    Look for all GUI Exif properties: MediaPortal-1/mediaportal/Core/Util/ExifExtensions.cs at 58c955866fb54a8c293afe525862bbb50c8f7b28...
    I would like one of the above IPTC metadata fields to display when viewing pictures in MP. I don't really care which, as I can...
    Replies
    1
    Views
    437
    I avoid touching that system as long as it runs. Now that 2.4.1 seems to run again, I probably wait for the next issue.
    I avoid touching that system as long as it runs. Now that 2.4.1 seems to run again, I probably wait for the next issue.
    Hi, I have just upgraded from MP 2.2.2 to MP 2.4.1, and now the client won't start. I see the splash screen, and then it just...
    Replies
    3
    Views
    1K
    Just those I attached. I messed about with task priorities MP/TV-Server/SQL-Server and the issue changed to the skin.. I would do something, but it would be 10's of seconds before the action happened. Doing an Alt-Tab would flush the actions. Too weird lol!! So, with some flak from the family, I had to give in. I just did a...
    Just those I attached. I messed about with task priorities MP/TV-Server/SQL-Server and the issue changed to the skin.. I would do...
    So, this one has me quite stumped. Have tried ) and a few things - driver updates, kicking the box, threatening it with a static...
    Replies
    8
    Views
    599
    (egg in face) I had to dnld SD plugin mpe1 to re install. trying again Thnx
    (egg in face) I had to dnld SD plugin mpe1 to re install. trying again Thnx
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
    Replies
    40
    Views
    6K
    Top Bottom