Startup XBMC and Select a Particular Homescreen Button
#1
I've been poking at this on and off for the last few weeks and not really found a good solution. Here's what I'd like to do. When XBMC starts up I'd like the TV SHOWS button on the home screen to be highlighted. I don't want to actually go into the TV SHOWS section, just get it set so that you have the home screen set so you can see the latest episodes list.

I've brute forced something with AutoIt (I'm running XBMC on windows), but it only works right about half the time. I'm using Confluence on Dharma. If this is a skin specific question I'll get the admins to move this to the right place.

Thanks.
Reply
#2
I don't think there is a way to do this in XBMC. Actually it's a surprising ommission. I'm sure it's possible by editing the skin, but offhand I don't know the appropriate incantation.

JR
Reply
#3
open Home.xml and search for id="11" which is

Code:
<item id="11">
<label>20343</label>
<onclick>ActivateWindow(VideoLibrary,TVShowTitles,return)</onclick>
<icon>special://skin/backgrounds/videos.jpg</icon>
<thumb>$INFO[Skin.String(Home_Custom_Back_TVShow_Folder)]</thumb>
<visible>Skin.HasSetting(HomeMenuNoTVShowsButton) + Library.HasContent(TVShows)</visible>
</item>

select and cut and then paste it after id="3"

Code:
<item id="3">
<label>2</label>
<onclick>ActivateWindow(Music)</onclick>
<icon>special://skin/backgrounds/music.jpg</icon>
<thumb>$INFO[Skin.String(Home_Custom_Back_Music_Folder)]</thumb>
<visible>!Skin.HasSetting(HomeMenuNoMusicButton)</visible>
</item>

see pic...
http://i.imgur.com/4OzBY.jpg
Reply
#4
here is a code examole in the wiki. you can use the defaultcontrol tg to do this without moving the menu. just add the tag accordingly

<defaultcontrol always="false">11</defaultcontrol>

for id 11 (TV SHOWS)


Code:
<window id="4567" type="dialog">
  <onload>RunScript(script.foobar)</onload>
  <onunload>SetProperty(foo,bar)</onunload>
[b][color=blue]  <defaultcontrol always="false">2</defaultcontrol>[/color][/b]  
  <allowoverlay>yes</allowoverlay>
  <backgroundcolor>0xff00ff00</backgroundcolor>
  <views>50,51,509,510</views>
  <visible>Window.IsActive(Home)</visible>
  <animation effect="fade" time="100">WindowOpen</animation>
  <animation effect="slide" end="0,576" time="100">WindowClose</animation>
  <zorder>1</zorder>
  <coordinates>
    <posx>40</posx>
    <posy>50</posy>
    <origin x="100" y="50">Window.IsActive(Home)</origin>
  </coordinates>
  <previouswindow>MyVideos</previouswindow>
  <controls>
    <control>
    </control>
    ....
  </controls>
</window

Code:
[b]defaultcontrol [/b] - This specifies the default control of the window.
This is the id of the control that will receive focus when the window is
first opened. Note that most XBMC windows save the current focus when
you leave the window, and will return to the last focused item when you
return to a window. This behaviour can be stopped by specifying the
attribute always="true".
Reply

Logout Mark Read Team Forum Stats Members Help
Startup XBMC and Select a Particular Homescreen Button0