<html><body>
<p>Thanks!<br>
But, are there any other ways can solve this problem then?<br>
it seems not so easy to solve this problem! another application would separated from MythTV now.<br>
<br>
Thanks!<br>
<br>
Jerry <br>
<tt><br>
<br>
On 10/08/2007 04:01 AM, Xi Jiarong wrote:<br>
&gt;&gt; I have a problem about MythTV and remote control:<br>
&gt;&gt; My Mythtv and remote control work properlly together now.<br>
&gt;&gt; However when I open other application or windows when Mythtv is running,and<br>
&gt;&gt; then didn't let the mythtv ui as be the frontend focused UI, but I found<br>
&gt;&gt; Mythtv UI would still be controlled by remote control even it is not on the<br>
&gt;&gt; front as been focused.<br>
&gt;&gt; &nbsp; <br>
<br>
&gt;Yep. &nbsp;LIRC has no concept of Window focus because LIRC is often used for<br>
&gt;things that have no windows to focus (i.e. my Internet radio script). <br>
&gt;Instead LIRC /always/ sends command strings as specified in the LIRC<br>
&gt;configuration file (typically ~/.lircrc) to /all/ clients. &nbsp;It is<br>
&gt;completely up to the client to determine whether or not the action<br>
&gt;should be performed at the time.<br>
<br>
&gt;When MythTV starts another application, it stops listening to LIRC<br>
&gt;commands until the other application exits. &nbsp;If you start an application<br>
&gt;on your own, Myth has no way of knowing it should ignore the LIRC commands.<br>
<br>
<br>
&gt;&gt; How to solve this problem so that let Remote control not to control Mythtv<br>
&gt;&gt; UI when I use remote cotrol for other application which is the current<br>
&gt;&gt; frontend focused window?<br>
<br>
&gt;Start the other application through MythTV (look at the EXECTV examples<br>
&gt;in /usr/{,local/}share/mythtv/tvmenu.xml and note that there is an EXEC<br>
&gt;equivalent for when you start an application that doesn't need a capture<br>
&gt;card).<br>
<br>
&gt;The only other option is to use LIRC modes (<br>
</tt><tt>&gt;<a href="http://lirc.org/html/configure.html#lircrc_format">http://lirc.org/html/configure.html#lircrc_format</a></tt><tt>&nbsp;), but this approach<br>
&gt;requires a lot of setup (possibly with redundant configuration<br>
&gt;information--depending on how you want your modes to work), requires<br>
&gt;synchronizing the &quot;current&quot; mode for all applications (<br>
</tt><tt>&gt;<a href="http://lirc.org/html/lircrcd.html">http://lirc.org/html/lircrcd.html</a></tt><tt>&nbsp;), as well as UI issues (having to<br>
&gt;devote buttons specifically to entering and exiting modes and/or having<br>
&gt;to remember which mode you're in). &nbsp;In other words, you probably don't<br>
&gt;want to do it (I know I don't, and I actually did it once just to verify).<br>
<br>
Mike</tt><br>
<br>
<br>
<br>
<br>
<br>
Best Regards!<br>
<br>
----------------<br>
Jerry<br>
</body></html>