2012-08-16, 16:03
Hi all
I was wanting to know how to run a .bat file by using the shutdown button on the main menu screen ? i have had a look at the DialogButtonMenu.xml and found this
<control type="button" id="1">
<description>Exit XBMC</description>
<label>[UPPERCASE]$LOCALIZE[13012][/UPPERCASE]</label>
<include>Objects_ContextMenuButton</include>
<onclick>XBMC.Quit()</onclick>
</control>
and changed it to this
<control type="button" id="1">
<description>Exit XBMC</description>
<label>[UPPERCASE]$LOCALIZE[13012][/UPPERCASE]</label>
<include>Objects_ContextMenuButton</include>
<onclick>XBMC.System.Exec(c:/exit.bat)</onclick>
</control>
this works for the context menu "exit" but wanted to do this on the home screen where it says shutdown is there a way to do this, i am using xbmc 10.1 and aeon nox skin
thanks
I was wanting to know how to run a .bat file by using the shutdown button on the main menu screen ? i have had a look at the DialogButtonMenu.xml and found this
<control type="button" id="1">
<description>Exit XBMC</description>
<label>[UPPERCASE]$LOCALIZE[13012][/UPPERCASE]</label>
<include>Objects_ContextMenuButton</include>
<onclick>XBMC.Quit()</onclick>
</control>
and changed it to this
<control type="button" id="1">
<description>Exit XBMC</description>
<label>[UPPERCASE]$LOCALIZE[13012][/UPPERCASE]</label>
<include>Objects_ContextMenuButton</include>
<onclick>XBMC.System.Exec(c:/exit.bat)</onclick>
</control>
this works for the context menu "exit" but wanted to do this on the home screen where it says shutdown is there a way to do this, i am using xbmc 10.1 and aeon nox skin
thanks