2005-04-21, 18:21
yeah, i pasted your code into xbmc, and it worked.
below is my home.xml
<window>
<id>0</id>
<defaultcontrol>2</defaultcontrol>
<allowoverlay>no</allowoverlay>
<controls>
<control>
<type>image</type>
<id>118</id>
<posx>182</posx>
<posy>105</posy>
<width>538</width>
<height>362</height>
<texture>launch.png</texture>
<visible>!player.hasvideo</visible>
</control>
<control>
<type>image</type>
<id>102</id>
<posx>182</posx>
<posy>105</posy>
<width>538</width>
<height>362</height>
<texture>4x3home-myprograms.png</texture>
<visible>!player.hasvideo</visible>
</control>
<control>
<type>image</type>
<id>106</id>
<posx>182</posx>
<posy>105</posy>
<width>538</width>
<height>362</height>
<texture>4x3home-myfiles.png</texture>
<visible>!player.hasvideo</visible>
</control>
<control>
<type>image</type>
<id>103</id>
<posx>182</posx>
<posy>105</posy>
<width>538</width>
<height>362</height>
<texture>4x3home-mymusic.png</texture>
<visible>!player.hasvideo</visible>
</control>
<control>
<type>image</type>
<id>104</id>
<posx>182</posx>
<posy>105</posy>
<width>538</width>
<height>362</height>
<texture>victoria.png</texture>
<visible>!player.hasvideo</visible>
</control>
<control>
<type>image</type>
<id>105</id>
<posx>182</posx>
<posy>105</posy>
<width>538</width>
<height>362</height>
<texture>4x3home-myvideos.png</texture>
<visible>!player.hasvideo</visible>
</control>
<control>
<type>image</type>
<id>107</id>
<posx>182</posx>
<posy>105</posy>
<width>538</width>
<height>362</height>
<texture>4x3home-myweather.png</texture>
<visible>!player.hasvideo</visible>
</control>
<control>
<type>image</type>
<id>109</id>
<posx>182</posx>
<posy>105</posy>
<width>538</width>
<height>362</height>
<texture>4x3home-settings.png</texture>
<visible>!player.hasvideo</visible>
</control>
<control>
<type>visualisation</type>
<id>1</id>
<posx>182</posx>
<posy>105</posy>
<width>538</width>
<height>372</height>
</control>
<control>
<description>video preview window</description>
<type>videowindow</type>
<id>1</id>
<posx>180</posx>
<posy>60</posy>
<width>540</width>
<height>455</height>
</control>
<control>
<description>background image</description>
<type>image</type>
<id>1</id>
<posx>0</posx>
<posy>0</posy>
<width>720</width>
<height>576</height>
<texture>4x3home.png</texture>
</control>
<control>
<description>gradient</description>
<type>image</type>
<id>1</id>
<visible>player.hasaudio</visible>
<posx>315</posx>
<posy>338</posy>
<width>400</width>
<height>99</height>
<texture>gradient.png</texture>
</control>
<control>
<description>cover image</description>
<type>image</type>
<id>1</id>
<posx>540</posx>
<posy>338</posy>
<width>100</width>
<height>99</height>
<info>musicplayer.cover</info>
</control>
<control>
<description>artist label</description>
<type>label</type>
<id>1</id>
<width>255</width>
<posx>525</posx>
<posy>340</posy>
<info>musicplayer.artist</info>
<align>right</align>
<font>special12</font>
</control>
<control>
<description>title label</description>
<type>label</type>
<id>1</id>
<width>255</width>
<posx>525</posx>
<posy>365</posy>
<info>musicplayer.title</info>
<align>right</align>
<font>special13</font>
</control>
<control>
<description>album label</description>
<type>label</type>
<id>1</id>
<width>255</width>
<posx>525</posx>
<posy>394</posy>
<info>musicplayer.album</info>
<align>right</align>
<font>font10</font>
</control>
<control>
<description>time label</description>
<type>label</type>
<id>1</id>
<posx>525</posx>
<posy>415</posy>
<info>musicplayer.time</info>
<align>right</align>
<font>font10</font>
</control>
<controlgroup>
<control>
<description>my programs normal push button</description>
<type>button</type>
<id>2</id>
<posx>91</posx>
<posy>231</posy>
<width>14</width>
<height>13</height>
<label>0</label>
<font>special13</font>
<hyperlink>1</hyperlink>
<onleft>98</onleft>
<onright>99</onright>
<onup>9</onup>
<ondown>4</ondown>
<texturefocus>home-focus.gif</texturefocus>
<texturenofocus>-</texturenofocus>
<textoffsetx>30</textoffsetx>
</control>
<control>
<description>my pictures normal push button</description>
<type>button</type>
<id>4</id>
<posx>91</posx>
<posy>271</posy>
<width>14</width>
<height>13</height>
<label>1</label>
<hyperlink>2</hyperlink>
<font>special13</font>
<onleft>98</onleft>
<onright>99</onright>
<onup>2</onup>
<ondown>5</ondown>
<texturefocus>home-focus.gif</texturefocus>
<texturenofocus>-</texturenofocus>
<textoffsetx>30</textoffsetx>
</control>
<control>
<description>my videos normal push button</description>
<type>button</type>
<id>5</id>
<posx>91</posx>
<posy>310</posy>
<width>14</width>
<height>13</height>
<label>3</label>
<font>special13</font>
<hyperlink>6</hyperlink>
<onleft>98</onleft>
<onright>99</onright>
<onup>4</onup>
<ondown>3</ondown>
<texturefocus>home-focus.gif</texturefocus>
<texturenofocus>-</texturenofocus>
<textoffsetx>30</textoffsetx>
</control>
<control>
<description>my music normal push button</description>
<type>button</type>
<id>3</id>
<posx>91</posx>
<posy>350</posy>
<width>14</width>
<height>13</height>
<label>2</label>
<hyperlink>501</hyperlink>
<font>special13</font>
<onleft>98</onleft>
<onright>99</onright>
<onup>5</onup>
<ondown>7</ondown>
<texturefocus>home-focus.gif</texturefocus>
<texturenofocus>-</texturenofocus>
<textoffsetx>30</textoffsetx>
</control>
<control>
<description>music video normal push button</description>
<type>button</type>
<id>18</id>
<posx>91</posx>
<posy>388</posy>
<width>14</width>
<height>13</height>
<label>music video</label>
<font>special13</font>
<execute>q:\scripts\launchbrowser\launchbrowser.py</execute>
<onleft>98</onleft>
<onright>99</onright>
<onup>3</onup>
<ondown>9</ondown>
<texturefocus>home-focus.gif</texturefocus>
<texturenofocus>-</texturenofocus>
<textoffsetx>30</textoffsetx>
</control>
<control>
<description>my weather normal push button</description>
<type>button</type>
<id>7</id>
<posx>310</posx>
<posy>434</posy>
<width>9</width>
<height>8</height>
<label>8</label>
<font>font10</font>
<hyperlink>2600</hyperlink>
<font>font10</font>
<onleft>6</onleft>
<onright>99</onright>
<onup>6</onup>
<ondown>2</ondown>
<texturefocus>home-focus.gif</texturefocus>
<texturenofocus>-</texturenofocus>
<textoffsetx>20</textoffsetx>
</control>
<control>
<description>settings normal push button</description>
<type>button</type>
<id>9</id>
<posx>80</posx>
<posy>434</posy>
<width>9</width>
<height>8</height>
<label>5</label>
<font>font10</font>
<hyperlink>4</hyperlink>
<onleft>98</onleft>
<onright>6</onright>
<onup>7</onup>
<ondown>2</ondown>
<texturefocus>home-focus.gif</texturefocus>
<texturenofocus>-</texturenofocus>
<textoffsetx>20</textoffsetx>
</control>
<control>
<description>my files normal push button</description>
<type>button</type>
<id>6</id>
<posx>195</posx>
<posy>434</posy>
<width>9</width>
<height>8</height>
<label>7</label>
<hyperlink>3</hyperlink>
<font>font10</font>
<onleft>9</onleft>
<onright>99</onright>
<onup>7</onup>
<ondown>2</ondown>
<texturefocus>home-focus.gif</texturefocus>
<texturenofocus>-</texturenofocus>
<textoffsetx>20</textoffsetx>
</control>
</controlgroup>
<control>
<type>image</type>
<id>102</id>
<posx>77</posx>
<posy>430</posy>
<width>15</width>
<height>16</height>
<texture>homebutton-small.png</texture>
</control>
<control>
<type>image</type>
<id>102</id>
<posx>192</posx>
<posy>430</posy>
<width>15</width>
<height>16</height>
<texture>homebutton-small.png</texture>
</control>
<control>
<description>date label</description>
<type>label</type>
<id>0</id>
<posx>582</posx>
<posy>70</posy>
<label>date</label>
<info>system.date</info>
<align>right</align>
<font>special12</font>
</control>
<control>
<description>suffix label</description>
<type>label</type>
<id>1</id>
<posx>592</posx>
<posy>68</posy>
<label>|</label>
<align>left</align>
<font>special12</font>
<textcolor>60ffffff</textcolor>
</control>
<control>
<description>time label</description>
<type>label</type>
<id>0</id>
<posx>602</posx>
<posy>70</posy>
<label>time</label>
<info>system.time</info>
<align>left</align>
<font>special12</font>
<textcolor>60ffffff</textcolor>
</control>
<control>
<description>rss feed</description>
<type>rss</type>
<id>1</id>
<posx>0</posx>
<posy>470</posy>
<width>720</width>
<font>font13</font>
<feed>http://mcpmag.com/rss/news/</feed>
<titlecolor>ffd2ff00</titlecolor>
<headlinecolor>ddced8da</headlinecolor>
<textcolor>ffd2ff00</textcolor>
</control>
<control>
<description>xlink kai conditional button</description>
<type>conditionalbutton</type>
<id>99</id>
<posx>544</posx>
<posy>503</posy>
<width>35</width>
<height>35</height>
<label>-</label>
<texturefocus>home-kai.gif</texturefocus>
<texturenofocus>home-kai.png</texturenofocus>
<hyperlink>2700</hyperlink>
<onleft>2</onleft>
<onright>100</onright>
<onup>2</onup>
<ondown>2</ondown>
</control>
<control>
<description>submenu button</description>
<type>button</type>
<id>100</id>
<posx>577</posx>
<posy>503</posy>
<width>35</width>
<height>35</height>
<hyperlink>105</hyperlink>
<texturefocus>home-sub.gif</texturefocus>
<texturenofocus>home-sub.png</texturenofocus>
<label>-</label>
<onleft>99</onleft>
<onright>98</onright>
<onup>2</onup>
<ondown>2</ondown>
</control>
<control>
<description>submenu button</description>
<type>button</type>
<id>98</id>
<posx>610</posx>
<posy>503</posy>
<width>35</width>
<height>35</height>
<hyperlink>111</hyperlink>
<texturefocus>home-power.gif</texturefocus>
<texturenofocus>home-power.png</texturenofocus>
<label>-</label>
<onleft>100</onleft>
<onright>2</onright>
<onup>2</onup>
<ondown>2</ondown>
</control>
<control>
<description>weather conditions</description>
<type>image</type>
<id>1</id>
<posx>75</posx>
<posy>498</posy>
<width>45</width>
<height>49</height>
<info>weather.conditions</info>
<colordiffuse>98fffffff</colordiffuse>
</control>
<control>
<description>weather temperature</description>
<type>label</type>
<id>1</id>
<posx>125</posx>
<posy>498</posy>
<info>weather.temperature</info>
<font>font12</font>
<align>left</align>
</control>
<control>
<description>weather location</description>
<type>label</type>
<id>1</id>
<posx>125</posx>
<posy>513</posy>
<info>weather.location</info>
<font>font12</font>
<align>left</align>
</control>
</controls>
</window>
below is my home.xml
<window>
<id>0</id>
<defaultcontrol>2</defaultcontrol>
<allowoverlay>no</allowoverlay>
<controls>
<control>
<type>image</type>
<id>118</id>
<posx>182</posx>
<posy>105</posy>
<width>538</width>
<height>362</height>
<texture>launch.png</texture>
<visible>!player.hasvideo</visible>
</control>
<control>
<type>image</type>
<id>102</id>
<posx>182</posx>
<posy>105</posy>
<width>538</width>
<height>362</height>
<texture>4x3home-myprograms.png</texture>
<visible>!player.hasvideo</visible>
</control>
<control>
<type>image</type>
<id>106</id>
<posx>182</posx>
<posy>105</posy>
<width>538</width>
<height>362</height>
<texture>4x3home-myfiles.png</texture>
<visible>!player.hasvideo</visible>
</control>
<control>
<type>image</type>
<id>103</id>
<posx>182</posx>
<posy>105</posy>
<width>538</width>
<height>362</height>
<texture>4x3home-mymusic.png</texture>
<visible>!player.hasvideo</visible>
</control>
<control>
<type>image</type>
<id>104</id>
<posx>182</posx>
<posy>105</posy>
<width>538</width>
<height>362</height>
<texture>victoria.png</texture>
<visible>!player.hasvideo</visible>
</control>
<control>
<type>image</type>
<id>105</id>
<posx>182</posx>
<posy>105</posy>
<width>538</width>
<height>362</height>
<texture>4x3home-myvideos.png</texture>
<visible>!player.hasvideo</visible>
</control>
<control>
<type>image</type>
<id>107</id>
<posx>182</posx>
<posy>105</posy>
<width>538</width>
<height>362</height>
<texture>4x3home-myweather.png</texture>
<visible>!player.hasvideo</visible>
</control>
<control>
<type>image</type>
<id>109</id>
<posx>182</posx>
<posy>105</posy>
<width>538</width>
<height>362</height>
<texture>4x3home-settings.png</texture>
<visible>!player.hasvideo</visible>
</control>
<control>
<type>visualisation</type>
<id>1</id>
<posx>182</posx>
<posy>105</posy>
<width>538</width>
<height>372</height>
</control>
<control>
<description>video preview window</description>
<type>videowindow</type>
<id>1</id>
<posx>180</posx>
<posy>60</posy>
<width>540</width>
<height>455</height>
</control>
<control>
<description>background image</description>
<type>image</type>
<id>1</id>
<posx>0</posx>
<posy>0</posy>
<width>720</width>
<height>576</height>
<texture>4x3home.png</texture>
</control>
<control>
<description>gradient</description>
<type>image</type>
<id>1</id>
<visible>player.hasaudio</visible>
<posx>315</posx>
<posy>338</posy>
<width>400</width>
<height>99</height>
<texture>gradient.png</texture>
</control>
<control>
<description>cover image</description>
<type>image</type>
<id>1</id>
<posx>540</posx>
<posy>338</posy>
<width>100</width>
<height>99</height>
<info>musicplayer.cover</info>
</control>
<control>
<description>artist label</description>
<type>label</type>
<id>1</id>
<width>255</width>
<posx>525</posx>
<posy>340</posy>
<info>musicplayer.artist</info>
<align>right</align>
<font>special12</font>
</control>
<control>
<description>title label</description>
<type>label</type>
<id>1</id>
<width>255</width>
<posx>525</posx>
<posy>365</posy>
<info>musicplayer.title</info>
<align>right</align>
<font>special13</font>
</control>
<control>
<description>album label</description>
<type>label</type>
<id>1</id>
<width>255</width>
<posx>525</posx>
<posy>394</posy>
<info>musicplayer.album</info>
<align>right</align>
<font>font10</font>
</control>
<control>
<description>time label</description>
<type>label</type>
<id>1</id>
<posx>525</posx>
<posy>415</posy>
<info>musicplayer.time</info>
<align>right</align>
<font>font10</font>
</control>
<controlgroup>
<control>
<description>my programs normal push button</description>
<type>button</type>
<id>2</id>
<posx>91</posx>
<posy>231</posy>
<width>14</width>
<height>13</height>
<label>0</label>
<font>special13</font>
<hyperlink>1</hyperlink>
<onleft>98</onleft>
<onright>99</onright>
<onup>9</onup>
<ondown>4</ondown>
<texturefocus>home-focus.gif</texturefocus>
<texturenofocus>-</texturenofocus>
<textoffsetx>30</textoffsetx>
</control>
<control>
<description>my pictures normal push button</description>
<type>button</type>
<id>4</id>
<posx>91</posx>
<posy>271</posy>
<width>14</width>
<height>13</height>
<label>1</label>
<hyperlink>2</hyperlink>
<font>special13</font>
<onleft>98</onleft>
<onright>99</onright>
<onup>2</onup>
<ondown>5</ondown>
<texturefocus>home-focus.gif</texturefocus>
<texturenofocus>-</texturenofocus>
<textoffsetx>30</textoffsetx>
</control>
<control>
<description>my videos normal push button</description>
<type>button</type>
<id>5</id>
<posx>91</posx>
<posy>310</posy>
<width>14</width>
<height>13</height>
<label>3</label>
<font>special13</font>
<hyperlink>6</hyperlink>
<onleft>98</onleft>
<onright>99</onright>
<onup>4</onup>
<ondown>3</ondown>
<texturefocus>home-focus.gif</texturefocus>
<texturenofocus>-</texturenofocus>
<textoffsetx>30</textoffsetx>
</control>
<control>
<description>my music normal push button</description>
<type>button</type>
<id>3</id>
<posx>91</posx>
<posy>350</posy>
<width>14</width>
<height>13</height>
<label>2</label>
<hyperlink>501</hyperlink>
<font>special13</font>
<onleft>98</onleft>
<onright>99</onright>
<onup>5</onup>
<ondown>7</ondown>
<texturefocus>home-focus.gif</texturefocus>
<texturenofocus>-</texturenofocus>
<textoffsetx>30</textoffsetx>
</control>
<control>
<description>music video normal push button</description>
<type>button</type>
<id>18</id>
<posx>91</posx>
<posy>388</posy>
<width>14</width>
<height>13</height>
<label>music video</label>
<font>special13</font>
<execute>q:\scripts\launchbrowser\launchbrowser.py</execute>
<onleft>98</onleft>
<onright>99</onright>
<onup>3</onup>
<ondown>9</ondown>
<texturefocus>home-focus.gif</texturefocus>
<texturenofocus>-</texturenofocus>
<textoffsetx>30</textoffsetx>
</control>
<control>
<description>my weather normal push button</description>
<type>button</type>
<id>7</id>
<posx>310</posx>
<posy>434</posy>
<width>9</width>
<height>8</height>
<label>8</label>
<font>font10</font>
<hyperlink>2600</hyperlink>
<font>font10</font>
<onleft>6</onleft>
<onright>99</onright>
<onup>6</onup>
<ondown>2</ondown>
<texturefocus>home-focus.gif</texturefocus>
<texturenofocus>-</texturenofocus>
<textoffsetx>20</textoffsetx>
</control>
<control>
<description>settings normal push button</description>
<type>button</type>
<id>9</id>
<posx>80</posx>
<posy>434</posy>
<width>9</width>
<height>8</height>
<label>5</label>
<font>font10</font>
<hyperlink>4</hyperlink>
<onleft>98</onleft>
<onright>6</onright>
<onup>7</onup>
<ondown>2</ondown>
<texturefocus>home-focus.gif</texturefocus>
<texturenofocus>-</texturenofocus>
<textoffsetx>20</textoffsetx>
</control>
<control>
<description>my files normal push button</description>
<type>button</type>
<id>6</id>
<posx>195</posx>
<posy>434</posy>
<width>9</width>
<height>8</height>
<label>7</label>
<hyperlink>3</hyperlink>
<font>font10</font>
<onleft>9</onleft>
<onright>99</onright>
<onup>7</onup>
<ondown>2</ondown>
<texturefocus>home-focus.gif</texturefocus>
<texturenofocus>-</texturenofocus>
<textoffsetx>20</textoffsetx>
</control>
</controlgroup>
<control>
<type>image</type>
<id>102</id>
<posx>77</posx>
<posy>430</posy>
<width>15</width>
<height>16</height>
<texture>homebutton-small.png</texture>
</control>
<control>
<type>image</type>
<id>102</id>
<posx>192</posx>
<posy>430</posy>
<width>15</width>
<height>16</height>
<texture>homebutton-small.png</texture>
</control>
<control>
<description>date label</description>
<type>label</type>
<id>0</id>
<posx>582</posx>
<posy>70</posy>
<label>date</label>
<info>system.date</info>
<align>right</align>
<font>special12</font>
</control>
<control>
<description>suffix label</description>
<type>label</type>
<id>1</id>
<posx>592</posx>
<posy>68</posy>
<label>|</label>
<align>left</align>
<font>special12</font>
<textcolor>60ffffff</textcolor>
</control>
<control>
<description>time label</description>
<type>label</type>
<id>0</id>
<posx>602</posx>
<posy>70</posy>
<label>time</label>
<info>system.time</info>
<align>left</align>
<font>special12</font>
<textcolor>60ffffff</textcolor>
</control>
<control>
<description>rss feed</description>
<type>rss</type>
<id>1</id>
<posx>0</posx>
<posy>470</posy>
<width>720</width>
<font>font13</font>
<feed>http://mcpmag.com/rss/news/</feed>
<titlecolor>ffd2ff00</titlecolor>
<headlinecolor>ddced8da</headlinecolor>
<textcolor>ffd2ff00</textcolor>
</control>
<control>
<description>xlink kai conditional button</description>
<type>conditionalbutton</type>
<id>99</id>
<posx>544</posx>
<posy>503</posy>
<width>35</width>
<height>35</height>
<label>-</label>
<texturefocus>home-kai.gif</texturefocus>
<texturenofocus>home-kai.png</texturenofocus>
<hyperlink>2700</hyperlink>
<onleft>2</onleft>
<onright>100</onright>
<onup>2</onup>
<ondown>2</ondown>
</control>
<control>
<description>submenu button</description>
<type>button</type>
<id>100</id>
<posx>577</posx>
<posy>503</posy>
<width>35</width>
<height>35</height>
<hyperlink>105</hyperlink>
<texturefocus>home-sub.gif</texturefocus>
<texturenofocus>home-sub.png</texturenofocus>
<label>-</label>
<onleft>99</onleft>
<onright>98</onright>
<onup>2</onup>
<ondown>2</ondown>
</control>
<control>
<description>submenu button</description>
<type>button</type>
<id>98</id>
<posx>610</posx>
<posy>503</posy>
<width>35</width>
<height>35</height>
<hyperlink>111</hyperlink>
<texturefocus>home-power.gif</texturefocus>
<texturenofocus>home-power.png</texturenofocus>
<label>-</label>
<onleft>100</onleft>
<onright>2</onright>
<onup>2</onup>
<ondown>2</ondown>
</control>
<control>
<description>weather conditions</description>
<type>image</type>
<id>1</id>
<posx>75</posx>
<posy>498</posy>
<width>45</width>
<height>49</height>
<info>weather.conditions</info>
<colordiffuse>98fffffff</colordiffuse>
</control>
<control>
<description>weather temperature</description>
<type>label</type>
<id>1</id>
<posx>125</posx>
<posy>498</posy>
<info>weather.temperature</info>
<font>font12</font>
<align>left</align>
</control>
<control>
<description>weather location</description>
<type>label</type>
<id>1</id>
<posx>125</posx>
<posy>513</posy>
<info>weather.location</info>
<font>font12</font>
<align>left</align>
</control>
</controls>
</window>