Focus on more than one list?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Balinus Offline
Skilled Skinner
Posts: 1,118
Joined: Jul 2011
Reputation: 19
Location: Montréal
Post: #1
Hello! I have a strange problem occurring when using a skin. The thing is when I go over "Programs", some Add-ons are displayed, as specified in skin settings. So I go over PseudoTV and the focus goes on the list of programs addons. If I click on PseudoTV, it plays withtout problems. The problem is when I stop pseudoTV, it goes back to the Home screen, but the focus seems to be on the main list (id=9000) and also on the programs list (id=8011). From there, I can no longer move. I'm stuck there.

I don't know if someone have an idea??

Thanks a lot, I can't find where the problem is... :/

edit - If you need more info, let me know! I'm using the updated version of Shade (see sig).
(This post was last modified: 2012-04-06 20:19 by Balinus.)
find quote
pecinko Online
Donor
Posts: 3,675
Joined: Dec 2008
Reputation: 49
Location: Prague / Belgrade
Post: #2
Heh, a paste of home.xml code on pastebin.com? What says debug.log?

My skins:

Amber
Quartz

find quote
Balinus Offline
Skilled Skinner
Posts: 1,118
Joined: Jul 2011
Reputation: 19
Location: Montréal
Post: #3
Just found the solution! (I think).

I've noticed that at the beginning there was a tag named "defaultcontrol" and it was set to 8999. Changed it to 9000 and it does the trick.

Do you think the 8999 was a mistake? In other word, changing it to 9000, will it break something? For now, everything else seems to work though Smile

edit - Here's the Home.xml : http://code.google.com/p/shade-xbmc-eden...p/Home.xml
(This post was last modified: 2012-04-06 20:36 by Balinus.)
find quote
pecinko Online
Donor
Posts: 3,675
Joined: Dec 2008
Reputation: 49
Location: Prague / Belgrade
Post: #4
By a quick look (lot of code there) it should be changed to 9000 as that is your main control on Home.

My skins:

Amber
Quartz

(This post was last modified: 2012-04-06 20:49 by pecinko.)
find quote
butchabay Online
Skilled Skinner
Posts: 3,677
Joined: Mar 2010
Reputation: 71
Location: Planet Crematoria
Post: #5
This was the old way to start recently added script, since it's in xbmc core you don't need it anymore. I don't think the id8999 will break something.
find quote
pecinko Online
Donor
Posts: 3,675
Joined: Dec 2008
Reputation: 49
Location: Prague / Belgrade
Post: #6
By a second look Smile , you should get rid of
PHP Code:
<control type="button" id="8999">
                        <
description>Run Recently added</description>
                        <
posx>-20</posx>
                        <
posy>-20</posy>
                        <
width>1</width>
                        <
height>1</height>
                        <
label>-</label>
                        <
font>-</font>
                        <
onfocus>XBMC.RunScript(script.recentlyadded,limit=10&amp;totals=True&amp;albums=True&amp;unplayed=True)</onfocus>
                        <
onfocus>SetFocus(9000)</onfocus>
                        <
texturenofocus>-</texturenofocus>
                        <
texturefocus>-</texturefocus>
                        <
visible>Skin.HasSetting(homepageHideRecentlyAdded)</visible>
                </
control>
                <
control type="button" id="8999">
                        <
description>Don't run Recently added</description>
                        <posx>-20</posx>
                        <posy>-20</posy>
                        <width>1</width>
                        <height>1</height>
                        <label>-</label>
                        <font>-</font>
                        <onfocus>SetFocus(9000)</onfocus>
                        <texturenofocus>-</texturenofocus>
                        <texturefocus>-</texturefocus>
                        <visible>!Skin.HasSetting(homepageHideRecentlyAdded)</visible>
                </control> 

This was the original purpose of "8999" control, but it's obsolete in Eden as recently added gets served by XBMC code, not script.

My skins:

Amber
Quartz

(This post was last modified: 2012-04-06 20:54 by pecinko.)
find quote
Balinus Offline
Skilled Skinner
Posts: 1,118
Joined: Jul 2011
Reputation: 19
Location: Montréal
Post: #7
Yes, about that script... I have a question. The reason I'm still keeping it is that I also use RandomMovies and RandomEpisodes. It doesn't seem to be included in the core of Eden right?
find quote
pecinko Online
Donor
Posts: 3,675
Joined: Dec 2008
Reputation: 49
Location: Prague / Belgrade
Post: #8
No they are not, but button "8999" does not seem to be related to random items script.

As Butchabay said, that button shouldn't do any harm so you may as well leave it. But if you intend to use it for starting script, leave default focus on "8999".

Alternative way is to use <onload></onload> to run random items script, take a look at wiki.

My skins:

Amber
Quartz

(This post was last modified: 2012-04-06 21:09 by pecinko.)
find quote
Balinus Offline
Skilled Skinner
Posts: 1,118
Joined: Jul 2011
Reputation: 19
Location: Montréal
Post: #9
ok, thanks! Smile

I'll look into <onload> or leave behind the Random items.
find quote
Balinus Offline
Skilled Skinner
Posts: 1,118
Joined: Jul 2011
Reputation: 19
Location: Montréal
Post: #10
ah well, just found out the script.randomitems by Hitcher. So, I'll use the inner code of XBMC for Recent items and the random script for random items.

Is it a good way to put the script.random in Startup.xml?
find quote
Hitcher Offline
Skilled Skinner
Posts: 10,281
Joined: Aug 2007
Reputation: 80
Location: Eastleigh, UK
Post: #11
Not always as some users have their XBMC machines running 24/7. Home is better.
find quote
Balinus Offline
Skilled Skinner
Posts: 1,118
Joined: Jul 2011
Reputation: 19
Location: Montréal
Post: #12
great, thanks for the answer!

I'll load it through <onload> tag then.
find quote
Raina Offline
Junior Member
Posts: 1
Joined: Apr 2012
Reputation: 0
Post: #13
(2012-04-06 20:53)pecinko Wrote:  By a second look Smile , you should get rid of
PHP Code:
<control type="button" id="8999">
                        <
description>Run Recently added</description>
                        <
posx>-20</posx>
                        <
posy>-20</posy>
                        <
width>1</width>
                        <
height>1</height>
                        <
label>-</label>
                        <
font>-</font>
                        <
onfocus>XBMC.RunScript(script.recentlyadded,limit=10&amp;totals=True&amp;albums=True&amp;unplayed=True)</onfocus>
                        <
onfocus>SetFocus(9000)</onfocus>
                        <
texturenofocus>-</texturenofocus>
                        <
texturefocus>-</texturefocus>
                        <
visible>Skin.HasSetting(homepageHideRecentlyAdded)</visible>
                </
control>
                <
control type="button" id="8999">
                        <
description>Don't run Recently added</description>
                        <posx>-20</posx>
                        <posy>-20</posy>
                        <width>1</width>
                        <height>1</height>
                        <label>-</label>
                        <font>-</font>
                        <onfocus>SetFocus(9000)</onfocus>
                        <texturenofocus>-</texturenofocus>
                        <texturefocus>-</texturefocus>
                        <visible>!Skin.HasSetting(homepageHideRecentlyAdded)</visible>
                </control> 

This was the original purpose of "8999" control, but it's obsolete in Eden as recently added gets served by XBMC code, not script.


its too complicated to me ~~~
find quote
Hitcher Offline
Skilled Skinner
Posts: 10,281
Joined: Aug 2007
Reputation: 80
Location: Eastleigh, UK
Post: #14
Remove all of it and set the default control to 9000.
find quote
Balinus Offline
Skilled Skinner
Posts: 1,118
Joined: Jul 2011
Reputation: 19
Location: Montréal
Post: #15
(2012-04-13 12:14)Raina Wrote:  
(2012-04-06 20:53)pecinko Wrote:  By a second look Smile , you should get rid of
PHP Code:
<control type="button" id="8999">
                        <
description>Run Recently added</description>
                        <
posx>-20</posx>
                        <
posy>-20</posy>
                        <
width>1</width>
                        <
height>1</height>
                        <
label>-</label>
                        <
font>-</font>
                        <
onfocus>XBMC.RunScript(script.recentlyadded,limit=10&amp;totals=True&amp;albums=True&amp;unplayed=True)</onfocus>
                        <
onfocus>SetFocus(9000)</onfocus>
                        <
texturenofocus>-</texturenofocus>
                        <
texturefocus>-</texturefocus>
                        <
visible>Skin.HasSetting(homepageHideRecentlyAdded)</visible>
                </
control>
                <
control type="button" id="8999">
                        <
description>Don't run Recently added</description>
                        <posx>-20</posx>
                        <posy>-20</posy>
                        <width>1</width>
                        <height>1</height>
                        <label>-</label>
                        <font>-</font>
                        <onfocus>SetFocus(9000)</onfocus>
                        <texturenofocus>-</texturenofocus>
                        <texturefocus>-</texturefocus>
                        <visible>!Skin.HasSetting(homepageHideRecentlyAdded)</visible>
                </control> 

This was the original purpose of "8999" control, but it's obsolete in Eden as recently added gets served by XBMC code, not script.


its too complicated to me ~~~

You can just use the latest Shade-Eden (v2.4.3). It's already baked in. See my sig for links to it.
find quote