Win XBMCLauncher / Launcher4Kodi - All in One Tool for Change Shell, Set Focus and more
(2012-10-01, 16:38)T800 Wrote: Is there anyway to add to this awesome app the ability to easily force close XBMC if its not-responding with the push of a remote button rather than getting a keyboard to press Alt+F4 or go into Task Manager?
Maybe automatically close XBMC if it's not responding after a set time then restart?

By editing the XBMCLauncher.ahk file, you can easily kill xbmc when you press the power button or any button of your choice. Find out which keypress the power button sends using showkey.exe. Usually it is 'S' if you have installed the xbmccustomsregis. Now you can define a shortcut key and assign the command to kill xbmc.

Code:
S::
Process, Close, xbmc.exe

Add it at the end of the script. Remember this can make problems like you can't type letter 's' because it will be captured by autohotkey.


Code for Alt+F4 is already there in the script, but it will show the shutdown menu using the following code.

Code:
$!F4::
IfWinActive, ahk_class XBMC ; check to see if xbmc.exe is running
    {
    Send s
    return
    }
IfWinNotActive, ahk_class XBMCLauncher
    Send !{F4}
    return

Just replace the 'Send s' line with 'Process, Close, xbmc.exe' . Change the remote control power button command to send Alt+F4.


(2012-10-01, 23:14)T800 Wrote: I'm using this on my bedroom HTPC and it works perfect.
On my main HTPC it's another story. When I press the green button it starts MCE. When I press Win+Alt+Enter on keyboard XBMC starts.
It doesn't fullscreen XBMC and it doesn't focus either. Strange!

Your MCE button is not sending Win+Alt+Enter. Change the mce remote registry to send win+alt+enter.

(2012-10-01, 19:09)Rumik Wrote: I've gone back to running launcher in its own mode because I can't get xbmc to get focus otherwise, but now sickbeard etc don't start up. Have created task scheduler tasks but that doesn't seem to work either. I can't edit the source file. Any chance of allowing us to specify a few apps to run alongside xbmc when it first loads up?

You can use the xbmconimon path and imon path to select the applications you want to autostart. Or edit the xbmclauncher.ahk file to include a run command at the beginning. Example run c:\program files\xxx\yyy.exe
Reply


Messages In This Thread
RE: XBMC Launcher - All in One Tool for Change Shell, Autostart XBMC, Set Focus and more - by baijuxavior - 2012-10-02, 09:39
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
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