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

    oops! here it is. Corrected xml
    oops! here it is. Corrected xml
    Before you create this bug report: Make sure that your system (windows, codecs and drivers) is up to date, matching the...
    Replies
    2
    Views
    225
    A few months ago my broadband package was compulsorily updated to a no-limit and much-more-expensive package, so I could now consider streaming video from the internet. (My previous broadband package had a 16GB per month limit, which made regular streaming from the internet a non-starter.) However... There seem to be a constant...
    A few months ago my broadband package was compulsorily updated to a no-limit and much-more-expensive package, so I could now...
    I have the most recent version of MP2, running on a PC with up-to-date Windows 10. Until recently I have been able to receive and...
    Replies
    5
    Views
    513
    You need to use "TV Server Config". On the "TV Channels" panel, you will find that there are two entries for "Quest" -- the old one and the new one. Simply delete the old one. When this happens in the future, you can select a channel and click the "Preview" button on the panel. If the channel is working, a small preview screen appears...
    You need to use "TV Server Config". On the "TV Channels" panel, you will find that there are two entries for "Quest" -- the old one...
    Help Please, I have a couple of issues. Query 1: Regarding the Quest channel: Last week, I set it to record a program and it...
    Replies
    1
    Views
    228
    I found the answer. The files were downloaded, and must have had some sort of corruption in them that passed the other players I tried them in, but produced the green bar in the TVSeries plugin. After downloading the files again, the problem went away. Thanks for your help.
    I found the answer. The files were downloaded, and must have had some sort of corruption in them that passed the other players I...
    Hi, A problem has just started when I use the TV Series plugin in MP1. The videos play, but with a broad green band at the very...
    Replies
    7
    Views
    614
    Hi Ge2301 Thanks for the help I tried the suggestion but it didnt help - however the issue is sorted now. - it seems that it was just that the server needed a restart (even though there was no indication in Windows) - as soon as I started both clients (one reparied as above, one not) both started working right away. (I would have...
    Hi Ge2301 Thanks for the help I tried the suggestion but it didnt help - however the issue is sorted now. - it seems that it was...
    Hi, I have a server/client PC (MP2.4) that seems still to be still working fine, but 2 other clients have suddenly stopped playing...
    Replies
    2
    Views
    267
    Top Bottom