2010-01-11, 00:57
Hi,
i want to add some functions to DialogButtonMenu.xml of Confluence..
First off, i'll try to add function for predefined shutdown timers.
when i do this, after fushing the button for the Shutdown Menu, my XBMC only just shutdown, without showing the menu...
here is a copy of my DialogButtonMenu.xml...
http://pastebin.com/m606c4cb0
Here the code i added (tooked it from PM3.HD)
Also i want to add a complete new button, for Calling a script (to shut down my windows mashine, wich acts as file server for my video database) best, thing would be if this could be done with a timer, too...
hope someone could give me a hint why my system just reboots instead of showing the shutdown menu...
Kubax
i want to add some functions to DialogButtonMenu.xml of Confluence..
First off, i'll try to add function for predefined shutdown timers.
when i do this, after fushing the button for the Shutdown Menu, my XBMC only just shutdown, without showing the menu...
here is a copy of my DialogButtonMenu.xml...
http://pastebin.com/m606c4cb0
Here the code i added (tooked it from PM3.HD)
Code:
<control type="button" id="30">
<description>30min ShutdownTimer button</description>
<posx>0</posx>
<posy>0</posy>
<width>80</width>
<height>81</height>
<texturefocus>-</texturefocus>
<texturenofocus>-</texturenofocus>
<onclick>XBMC.AlarmClock(shutdowntimer,XBMC.Shutdown(),30)</onclick>
<pulseonselect>no</pulseonselect>
<onleft>13</onleft>
<onright>15</onright>
<onup>31</onup>
<ondown>35</ondown>
<font>-</font>
<label>20147</label>
</control>
<control type="button" id="31">
<description>60min ShutdownTimer button</description>
<posx>0</posx>
<posy>0</posy>
<width>80</width>
<height>81</height>
<texturefocus>-</texturefocus>
<texturenofocus>-</texturenofocus>
<onclick>XBMC.AlarmClock(shutdowntimer,XBMC.Shutdown(),60)</onclick>
<pulseonselect>no</pulseonselect>
<onleft>13</onleft>
<onright>15</onright>
<onup>32</onup>
<ondown>30</ondown>
<font>-</font>
<label>20148</label>
</control>
<control type="button" id="32">
<description>120min ShutdownTimer button</description>
<posx>0</posx>
<posy>0</posy>
<width>80</width>
<height>81</height>
<texturefocus>-</texturefocus>
<texturenofocus>-</texturenofocus>
<onclick>XBMC.AlarmClock(shutdowntimer,XBMC.Shutdown(),120)</onclick>
<pulseonselect>no</pulseonselect>
<onleft>13</onleft>
<onright>15</onright>
<onup>33</onup>
<ondown>31</ondown>
<font>-</font>
<label>20149</label>
</control>
Also i want to add a complete new button, for Calling a script (to shut down my windows mashine, wich acts as file server for my video database) best, thing would be if this could be done with a timer, too...
hope someone could give me a hint why my system just reboots instead of showing the shutdown menu...
Kubax