home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Reciever plugin
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="nefreyu" data-source="post: 125475" data-attributes="member: 45728"><p>[CODE]</p><p>..........Some where in the initialize............</p><p></p><p> //Attach event listener</p><p> GUIWindowManager.Receivers += new SendMessageHandler(OnThreadMessage);</p><p></p><p>..........end somewhere in the initialize................</p><p></p><p> private void OnThreadMessage(GUIMessage message)</p><p> {</p><p> switch(message.Message)</p><p> {</p><p> case GUIMessage.MessageType.GUI_MSG_TUNE_EXTERNAL_CHANNEL:</p><p> int channelNum = int.Parse(message.Label);</p><p> ChangeChannel(channelNum);</p><p> break;</p><p> }</p><p> } [/CODE]</p><p></p><p>Hereby the code for receiving messages from the MP kernel, I will look for a way to send these kind of messages so I can post a message to you plugin to change the channel on the selected receiver for instance.</p><p></p><p>By the way, not to be picky but it's Receiver, not Reciever ;-)</p><p></p><p></p><p></p><p></p><p>-- Edit:</p><p></p><p>I have not yet been able to find the correct GUI messages for volume management</p></blockquote><p></p>
[QUOTE="nefreyu, post: 125475, member: 45728"] [CODE] ..........Some where in the initialize............ //Attach event listener GUIWindowManager.Receivers += new SendMessageHandler(OnThreadMessage); ..........end somewhere in the initialize................ private void OnThreadMessage(GUIMessage message) { switch(message.Message) { case GUIMessage.MessageType.GUI_MSG_TUNE_EXTERNAL_CHANNEL: int channelNum = int.Parse(message.Label); ChangeChannel(channelNum); break; } } [/CODE] Hereby the code for receiving messages from the MP kernel, I will look for a way to send these kind of messages so I can post a message to you plugin to change the channel on the selected receiver for instance. By the way, not to be picky but it's Receiver, not Reciever ;-) -- Edit: I have not yet been able to find the correct GUI messages for volume management [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Reciever plugin
Contact us
RSS
Top
Bottom