2012-07-29, 13:54
you can set windows shell or edit exit menu.
Quote:You can edit the skin DialogButtonMenu.xml to insert a simple code to start windows desktop.
In confluence skin, it is under C:\Program Files\XBMC\addons\skin.confluence\720p
Open the file DialogButtonMenu.xml and add the line <onclick>XBMC.RunScript(C:\program files\XBMC\StartWindows.py)</onclick> just above the <onclick>XBMC.Quit()</onclick> under the Exit button code as follows:
<control type="button" id="2">
<description>Exit button</description>
<width>340</width>
<height>40</height>
<textcolor>grey2</textcolor>
<focusedcolor>white</focusedcolor>
<align>center</align>
<textwidth>290</textwidth>
<texturefocus border="25,5,25,5">ShutdownButtonFocus.png</texturefocus>
<texturenofocus border="25,5,25,5">ShutdownButtonNoFocus.png</texturenofocus>
<onclick>XBMC.RunScript(StartWindows.py)</onclick>
<onclick>XBMC.Quit()</onclick>
<pulseonselect>no</pulseonselect>
<font>font13</font>
<label>13012</label>
<visible>false</visible>
</control>
Or you can edit the XBMCLauncher.ahk file in the source code to start explorer when xbmc is exited by adding the code in a loop.
Process, Exist, xbmc.exe ; check to see if xbmc.exe is running
If (ErrorLevel = 0) ; If it is not running
{
Process, Exist, explorer.exe ; check to see if explorer.exe is running
If (ErrorLevel = 0) ;if explorer is not running
{
run explorer.exe
}
}
return