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
Development
General Development (no feature request here!)
Event not firing
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="Anonymous" data-source="post: 4334"><p>I'm working on integrating WinLIRC control of an external tuner.</p><p></p><p>I am implementing the funtionality in a similar way to USBUIRC. </p><p></p><p>I can't figure out why an event listener does not fire. Can anyone shed any light on this???? If USBUIRC is working, I can't figure out why this code does not work. I put some debug messages into the log, and I verify that the code that sends the message works, but the debug message in the recieve section of the code does not ever print to the log. Any ideas???? Thx...</p><p></p><p>This is the message being sent:.GUI_MSG_TUNE_EXTERNAL_CHANNEL</p><p></p><p>In recorder.cs, the message is sent:</p><p></p><p> static void TuneExternalChannel(string strChannelName, TVCaptureDevice theDev)</p><p> {</p><p> foreach (TVChannel chan in m_TVChannels)</p><p> {</p><p> if (chan.Name.Equals(strChannelName))</p><p> {</p><p> if (chan.External)</p><p> {</p><p> GUIMessage msg = new GUIMessage(GUIMessage.MessageType.GUI_MSG_TUNE_EXTERNAL_CHANNEL,0,0,0,0,0,null);</p><p> msg.Label=chan.ExternalTunerChannel;</p><p> msg.Label2 = theDev.FriendlyName;</p><p> GUIWindowManager.SendThreadMessage(msg);</p><p> Log.Write("********Sent message to tune external");</p><p> }</p><p> return;</p><p> }</p><p> }</p><p> }</p><p></p><p></p><p>In MediaPortal.cs, the message is listened to:</p><p></p><p>private void OnMessage(GUIMessage message)</p><p> {</p><p> switch (message.Message)</p><p> {</p><p> case GUIMessage.MessageType.GUI_MSG_CD_INSERTED:</p><p> AutoPlay.ExamineCD(message.Label);</p><p> break;</p><p></p><p> case GUIMessage.MessageType.GUI_MSG_SHOW_WARNING:</p><p> {</p><p> string strHead=GUILocalizeStrings.Get(message.Param1);</p><p> string strLine1=GUILocalizeStrings.Get(message.Param2);</p><p> string strLine2=GUILocalizeStrings.Get(message.Param3);</p><p> ShowInfo(strHead,strLine1,strLine2);</p><p> }</p><p> break;</p><p> case GUIMessage.MessageType.GUI_MSG_TUNE_EXTERNAL_CHANNEL : </p><p> Log.Write("*************Received Message to change external channel");</p><p> try...</p></blockquote><p></p>
[QUOTE="Anonymous, post: 4334"] I'm working on integrating WinLIRC control of an external tuner. I am implementing the funtionality in a similar way to USBUIRC. I can't figure out why an event listener does not fire. Can anyone shed any light on this???? If USBUIRC is working, I can't figure out why this code does not work. I put some debug messages into the log, and I verify that the code that sends the message works, but the debug message in the recieve section of the code does not ever print to the log. Any ideas???? Thx... This is the message being sent:.GUI_MSG_TUNE_EXTERNAL_CHANNEL In recorder.cs, the message is sent: static void TuneExternalChannel(string strChannelName, TVCaptureDevice theDev) { foreach (TVChannel chan in m_TVChannels) { if (chan.Name.Equals(strChannelName)) { if (chan.External) { GUIMessage msg = new GUIMessage(GUIMessage.MessageType.GUI_MSG_TUNE_EXTERNAL_CHANNEL,0,0,0,0,0,null); msg.Label=chan.ExternalTunerChannel; msg.Label2 = theDev.FriendlyName; GUIWindowManager.SendThreadMessage(msg); Log.Write("********Sent message to tune external"); } return; } } } In MediaPortal.cs, the message is listened to: private void OnMessage(GUIMessage message) { switch (message.Message) { case GUIMessage.MessageType.GUI_MSG_CD_INSERTED: AutoPlay.ExamineCD(message.Label); break; case GUIMessage.MessageType.GUI_MSG_SHOW_WARNING: { string strHead=GUILocalizeStrings.Get(message.Param1); string strLine1=GUILocalizeStrings.Get(message.Param2); string strLine2=GUILocalizeStrings.Get(message.Param3); ShowInfo(strHead,strLine1,strLine2); } break; case GUIMessage.MessageType.GUI_MSG_TUNE_EXTERNAL_CHANNEL : Log.Write("*************Received Message to change external channel"); try... [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Event not firing
Contact us
RSS
Top
Bottom