Win XBMCLauncher / Launcher4Kodi - All in One Tool for Change Shell, Set Focus and more
(2013-05-12, 17:21)houlty Wrote:
(2013-05-12, 09:06)baijuxavior Wrote: ^^ It may be a problem with 64 bit Win8 and autohotkey. I have tested it only in 32 bit OS. Please run the following code in a autohotkey script:

Code:
#Persistent

OnMessage(0x218, "WM_POWERBROADCAST")

WM_POWERBROADCAST(wParam, lParam)

{
    
        
    If (wParam=4) ;suspend
        FileAppend, Suspending`n, d:\log.txt
    
    
    If (wParam=7) ;on resuming from suspend state
        FileAppend, Resuming, d:\log.txt
    
}

Install autohotkey, right click desktop or any location > New > Autohotkey script file. Right click the file > Edit Script to open the file in notepad and paste the above code. Save and run it. Set the system to sleep and on resuming the script will create a txt file d:\log.txt. If this file contains the lines suspending and resuming then the script worked. If not there is some problem with the script.

i just tried the script and both suspending and resuming show up. it seems to be that the only problem is xbmc is not force closing before suspending, as when i quit xbmc, then suspend and resume, xbmc does restart.

Seems like XBMC is not force closed before suspending.

Modify the above script as follows and see if it works.

Code:
WM_POWERBROADCAST(wParam, lParam)

{
    If (wParam=4) ;suspend
    {
        Process, Exist, xbmc.exe ; check to see if xbmc.exe is running
            If (ErrorLevel > 0) ; If it is running
            {
                Process, Close, %ErrorLevel%  
                Process, WaitClose, %ErrorLevel%
                sleep 1000
            }
    }    
    
    If (wParam=7) ;on resuming from suspend state
        Run,C:\Program Files\XBMC\XBMC.exe
        
}


(2013-05-12, 18:59)FoxTC Wrote:
(2013-05-12, 15:28)baijuxavior Wrote: @FoxTC: I checked in my Win8 32 bit OS and xbmc starts as is intended. The following settings should be enabled for this to work.

Set XBMCLauncher as shell. If shell is not set to xbmclauncher, xbmc is not loaded until you click the desktop in metro start.
Set the option to start XBMC at winlogon
Set the option to start metro UI when xbmc is closed.

This sounds good, I will reinstall it tonight and try these settings, thanks. What options on the installer would you recommend?

Install with the option to set xbmclauncher as shell. Then set the other options in the gui or context menu.
Reply


Messages In This Thread
green start button remapping - by Cassiel - 2013-02-12, 21:44
RE: XBMC Launcher - by Govnah - 2013-02-16, 06:32
RE: XBMCLauncher - by MBulli - 2013-02-17, 12:20
RE: XBMCLauncher - All in One Tool for Change Shell, Set Focus and more - by baijuxavior - 2013-05-13, 06:25
Launcher4Kodi - by baijuxavior - 2015-02-17, 15:27
lack of focus - by runey71 - 2015-02-18, 07:53
black screen problem - by -CraZed- - 2015-03-18, 06:36
RE: XBMCLauncher / Launcher4Kodi - by TB4875 - 2015-03-25, 11:49
RE: XBMCLauncher / Launcher4Kodi - by kmarq - 2015-05-19, 14:41
Error - by liamp - 2015-05-31, 23:03
RE: XBMCLauncher / Launcher4Kodi - by gitman - 2015-06-07, 21:40
RE: XBMCLauncher / Launcher4Kodi - by RockerC - 2015-06-16, 16:28
RE: Using Tweak UAC - by berkhornet - 2015-07-13, 19:04
RE: - by alsergo - 2015-11-25, 00:11
W10 and netflix - by Cassiuss - 2016-01-10, 15:50
netflix - by Cassiuss - 2016-01-11, 09:11
netflix - by Cassiuss - 2016-01-11, 11:12
netflix - by Cassiuss - 2016-01-11, 13:04
netflix - by Cassiuss - 2016-01-11, 11:44
Reverse shell to explorer - by shayosef - 2016-01-17, 14:24
Launcher4Kodi improvement - by kalhimeo - 2016-01-27, 20:20
resume during recording kodi - by eddedrukker - 2016-04-03, 08:58
RE: XBMCLauncher / Launcher4Kodi - by leezy88 - 2017-02-06, 09:41
Might be of use to someone... - by Grumpy - 2017-09-19, 04:18
Logout Mark Read Team Forum Stats Members Help
XBMCLauncher / Launcher4Kodi - All in One Tool for Change Shell, Set Focus and more20