by Twit on Mon Feb 23, 2004 4:07 am
John,
This worked in 39.1 - am not sure it works with 4 -will still test it.
paste into notepad and name buttontrigger.xml and dump into your current skin folder.
because i only use a remote i used to hide some of the buttons ie play/pause etc , as these are buttons on my remote. I then noticed if i am in a totally other screen (eg movies) and i push 'pause music' on the remote, the music paused. So i made a screen just for buttons - the user will never see it. as you can see it is just a load of buttons.
<?xml version="1.0" encoding="UTF-8"?>
<skin background="">
<skinsize>800,600</skinsize>
<eventbutton>
<imagename>brushedmetal.png</imagename>
<location>6,545,128,38</location>
<id>buttonMenu</id>
<navitem>True</navitem>
<text>Main Menu</text>
<center>True</center>
<font>Impact,3%,#FFFFFF</font>
<eventcode>110</eventcode>
<sound>click.wav</sound>
<localevent>
<event>menu</event>
</localevent>
</eventbutton>
<eventbutton>
<imagename>brushedmetal.png</imagename>
<location>146,544,128,38</location>
<navitem>True</navitem>
<text>Playlist</text>
<center>True</center>
<font>Impact,3%,#FFFFFF</font>
<eventcode>111</eventcode>
<sound>click.wav</sound>
<girderevent>
<event>addon</event>
</girderevent>
<localevent>
<event>playlist</event>
</localevent>
</eventbutton>
<eventbutton>
<imagename>play.png</imagename>
<location>513,0,41,36</location>
<id>play</id>
<navitem>True</navitem>
<eventcode>310</eventcode>
<sound>click.wav</sound>
<serverExecute>True</serverExecute>
</eventbutton>
<eventbutton>
<imagename>brushedmetal.png</imagename>
<location>286,544,128,38</location>
<navitem>True</navitem>
<text>NowPlaying</text>
<center>True</center>
<font>Impact,3%</font>
<eventcode>112</eventcode>
<localevent>
<event>nowplaying</event>
</localevent>
</eventbutton>
<eventbutton>
<imagename>gel-blue-round.png</imagename>
<location>430,546,359,41</location>
<navitem>True</navitem>
<text>Start Visualizations</text>
<center>True</center>
<font>Impact,3.33333333333333%</font>
<eventcode>96</eventcode>
<localevent>
<event>8</event>
</localevent>
</eventbutton>
<eventbutton>
<imagename>arrow-left.png</imagename>
<location>483,69,20,20</location>
<navitem>False</navitem>
<eventcode>220</eventcode>
<localevent>
<event>audioplayer>volume>-5</event>
</localevent>
</eventbutton>
<eventbutton>
<imagename>arrow-right.png</imagename>
<location>483,39,20,20</location>
<navitem>False</navitem>
<eventcode>230</eventcode>
<localevent>
<event>audioplayer>volume>5</event>
</localevent>
</eventbutton>
<eventbutton>
<imagename>pause.png</imagename>
<location>560,0,41,36</location>
<id>pause</id>
<navitem>True</navitem>
<eventcode>320</eventcode>
<sound>click.wav</sound>
<serverExecute>True</serverExecute>
</eventbutton>
<eventbutton>
<imagename>stop.png</imagename>
<location>607,0,41,36</location>
<id>stop</id>
<navitem>True</navitem>
<font>Arial,1.30208333333333%</font>
<eventcode>330</eventcode>
<sound>click.wav</sound>
<serverExecute>True</serverExecute>
</eventbutton>
<eventbutton>
<imagename>prev.png</imagename>
<location>654,0,41,36</location>
<id>prev</id>
<navitem>True</navitem>
<eventcode>103</eventcode>
<sound>click.wav</sound>
<serverExecute>True</serverExecute>
</eventbutton>
<eventbutton>
<imagename>next.png</imagename>
<location>701,0,41,36</location>
<id>next</id>
<navitem>True</navitem>
<eventcode>340</eventcode>
<sound>click.wav</sound>
<serverExecute>True</serverExecute>
</eventbutton>
<eventbutton>
<imagename>switch-general.png</imagename>
<location>513,41,82,14</location>
<id>shuffle</id>
<navitem>True</navitem>
<text>Shuffle</text>
<center>True</center>
<font>Impact,2.60416666666667%,#FFFFFF</font>
<eventcode>105</eventcode>
<sound>click.wav</sound>
<serverExecute>True</serverExecute>
<textMovement>False</textMovement>
</eventbutton>
<eventbutton>
<imagename>gel-blue-round.png</imagename>
<location>608,43,79,13</location>
<id>clear</id>
<navitem>True</navitem>
<text>Clear</text>
<center>True</center>
<font>Impact,2.60416666666667%,#FFFFFF</font>
<eventcode>107</eventcode>
<sound>click.wav</sound>
<localevent>
<event>150</event>
</localevent>
</eventbutton>
<eventbutton>
<imagename>switch-general.png</imagename>
<location>700,41,82,14</location>
<id>repeat</id>
<navitem>True</navitem>
<text>Repeat</text>
<center>True</center>
<font>Impact,2.60416666666667%,#FFFFFF</font>
<eventcode>106</eventcode>
<sound>click.wav</sound>
<serverExecute>True</serverExecute>
<textMovement>False</textMovement>
</eventbutton>
<eventbutton>
<imagename>brushedmetal.png</imagename>
<location>19,488,212,30</location>
<navitem>True</navitem>
<text>Clear Playlist</text>
<center>True</center>
<font>Impact,2.60416666666667%,#FFFFFF</font>
<eventcode>450</eventcode>
<sound>click.wav</sound>
<serverExecute>True</serverExecute>
<localevent>
<event>clearplaylist</event>
</localevent>
</eventbutton>
<eventbutton>
<imagename>brushedmetal.png</imagename>
<location>21,415,197,45</location>
<navitem>True</navitem>
<text>Kids Movies</text>
<center>True</center>
<font>Impact,3.33333333333333%</font>
<eventcode>880</eventcode>
<localevent>
<event>kidsmovies</event>
</localevent>
</eventbutton>
</skin>