2014-07-04, 03:12
(2014-07-03, 09:51)Jkruger Wrote: Great program,
Is there a way to show a custom background (or even better turn the screen off) when I shut down xbmc into XBMCLauncher shell? As it is now I have the machine to sleep after x minutes when idle (for making sure no background tasks is running), it is only showing a black screen when XBMC have exit but you can still see that it is on.
(2014-07-03, 23:20)Jkruger Wrote: Thnks baijuxavior,
Now the obvious question if you are a nob like me, witch script file do I need to change? And is there a setting in the script that is easy to change or do I have to come up with something somewhere, I guess it involves compiling etc, have nooo idea what I am doing. Sorry,
If you select the option start explorer when xbmc is closed, it will display the desktop. This is the code you need to edit. Download the source code from the github link in the first page and open the file XBMCLauncher.ahk in notepad. To turn off the display, replace the lines from 1666 to 1675
Code:
Process, Exist, xbmc.exe ; check if xbmc.exe is running
If (ErrorLevel = 0) ;if not running
{ Process, Exist, explorer.exe ; check if explorer.exe is running
If (ErrorLevel = 0)
Run, %A_WinDir%\Explorer.exe, %A_WinDir%
Process, Exist, explorer.exe ; if explorer.exe is not started in previous step
If (ErrorLevel = 0)
Run Explorer.exe
}
with
Code:
Process, Exist, xbmc.exe ; check if xbmc.exe is running
If (ErrorLevel = 0) ;if not running
{ Sleep 1000
SendMessage 0x112, 0xF170, 2,,Program Manager
}
Save the file and rightclick and compile to get the exe file, assuming you have installed autohotkey. Replace the exe file in your program folders with the newly compiled one.