MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Community Skins and Plugins » Plugins


Plugins Plugins developed and maintained by users. Want to create your own plugin? Start a thread in here.

Reply
 
Thread Tools Display Modes
Old 2004-09-20, 15:12   #1 (permalink)
Anonymous
Guest
 
Posts: n/a


Default How do non-GUI plugins receive messages?

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?
  Reply With Quote
Old 2004-09-20, 15:22   #2 (permalink)
Portal Developer
 
frodo's Avatar
 
Join Date: Apr 2004
Location: The Netherlands
Age: 37
Posts: 1,516
Thanks: 3
Thanked 119 Times in 44 Posts

Country:

My System

Default

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
    }
}
frodo is offline   Reply With Quote
Reply

Bookmarks

Tags
messages, nongui, plugins, receive

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
'Failed to start timeshifting, unable to create graph'.... cashel General Support 3 2006-05-19 22:27
Plugins: NOT User-friendly! MyHTPC allover again:-( msj33 Website/Forum/Wiki Feedback 14 2006-04-11 13:08
Gathering topical infos about plugins (To: authors & use tomtom21000 Plugins 2 2006-02-05 00:20
Plugins loading... problems maniac's General Development (no feature request here!) 0 2005-01-07 10:25


All times are GMT +1. The time now is 09:51.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden