2014-11-21, 14:34
(2014-11-21, 10:23)Dan0sz Wrote:(2014-11-21, 05:31)baijuxavior Wrote:(2014-11-20, 19:31)Dan0sz Wrote: This might be a crazy question, but is it possible to schedule when XBMC Launcher is the shell and when it is Explorer? I.e. set it to certain times when XBMC Launcher functions as the shell and when (outside of that given time-window) explorer is the shell?
What I'm trying to achieve here, is to create two automated situations where my HTPC starts up during the daytime (say 08:00 till 00:00) it boots up directly to XBMC with the set of applications entered in the XBMCLauncher-config and during the nighttime automatically (say between 03:00 and 06:00) it uses the Explorer-shell, which boots up along with Sick Beard, Sabnzbd and Couchpotato for automated nighttime downloading.
Looking forward to your ideas!
May be you could try the windows task scheduler. Add a task to start explorer.exe at 03:00. I'm not sure if this will work as explorer is not yet started. You can also modify the launcher script to start explorer.exe after 03:00.
Could you give me an example of how I were to modify the launcher-script after 03:00?
Replace the code starting at Line 484 as shown below:
Code:
MonitorEvents:
{ if (A_Hour = 03) and (A_Min = 0) ; if time 03:00
Process, Exist, explorer.exe ; if explorer.exe is not running
If (ErrorLevel = 0)
Run, %A_WinDir%\Explorer.exe, %A_WinDir%
}
KeepFocus()
StartExplorer()
I have not tested this code. You may need to slightly modify it.
http://www.autohotkey.com/board/topic/35...tain-time/
http://www.autohotkey.com/board/topic/29...sing-loop/
http://www.autohotkey.com/board/topic/10...me-detect/
http://www.autohotkey.com/board/topic/35...ntry223598