To run a .bat file using shutdown menu option help

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
meridius Offline
Fan
Posts: 709
Joined: Jul 2010
Reputation: 1
Post: #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
(This post was last modified: 2012-08-16 16:10 by meridius.)
find quote
meridius Offline
Fan
Posts: 709
Joined: Jul 2010
Reputation: 1
Post: #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
find quote
phil65 Offline
Skilled Skinner
Posts: 4,456
Joined: Mar 2009
Reputation: 56
Location: Cologne, Germany
Post: #3
we don´t support xbmc 10.1 anymore.
find quote
meridius Offline
Fan
Posts: 709
Joined: Jul 2010
Reputation: 1
Post: #4
Ok thanks.

Same question then for xbmc 11 and the latest skin as I have just upgraded to that last night
(This post was last modified: 2012-08-17 07:33 by meridius.)
find quote
phil65 Offline
Skilled Skinner
Posts: 4,456
Joined: Mar 2009
Reputation: 56
Location: Cologne, Germany
Post: #5
search for <onclick>ActivateWindow(1123)</onclick> in includes_mainmenu.xml. that´s the line which you have to change.
find quote
meridius Offline
Fan
Posts: 709
Joined: Jul 2010
Reputation: 1
Post: #6
Cheers

Thanks for that will look at that later
find quote