To run a .bat file using shutdown menu option help
#1
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
Reply
#2
anyone ? just want to be able to run a .bat file by using the shutdown option on the main home screen of xbmc

thanks
Reply
#3
we don´t support xbmc 10.1 anymore.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#4
Ok thanks.

Same question then for xbmc 11 and the latest skin as I have just upgraded to that last night
Reply
#5
search for <onclick>ActivateWindow(1123)</onclick> in includes_mainmenu.xml. that´s the line which you have to change.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#6
Cheers

Thanks for that will look at that later
Reply

Logout Mark Read Team Forum Stats Members Help
To run a .bat file using shutdown menu option help0