Windows XBMCLauncher - All in One Tool for Change Shell, Set Focus and more

  Thread Rating:
  • 10 Votes - 4.2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
baijuxavior Online
Posting Freak
Posts: 773
Joined: Jan 2012
Reputation: 20
Location: India
Post: #21
@meridius:

Quote:1. you need to ad an option to be able to diable losses focus somtimes it does some weired things on my system
2. could you add an option to check focus once and one time only.

1. You can disable the focus by using Win+F9 shortcut. Are you using this key combination Win+F9 for any other purpose?. Also when you close xbmc, XBMCLauncher will stop sending focus message until xbmc is started again.
2. Will be added in the next version.

@yzeyze :

Quote:I had a look in the source code, and can see where to do this, but when I try to compile with AutoHotKey, I keep getting a problem on line 26 with the #warn variable. (this is without making changes to the .ahk file) (XBMCLauncher.ahk file that is).
Do I need to do more than just compile the ahk file with autohotkey?

Thanks for trying the source code. I hope it was easy for you to understand the code logic. I have commented most of the code. Use Autohotkey_L or delete the #warn line.

Quote:one thing I would like is for it not to close XBMC on sleep and fire it up again.

I added this option because when xbmc resumes from hibernation or sleep, it fails to find my hdmi audio and i need to close xbmc and start it again. I will add an option to disable this as per user choice.

@LordMerlin:

Quote:I realized this. But unfortunately I just use the IMON and xbmconimon to work display, and IRSS to use the remote control from the receiver, and the SVP for smooth video. And just runs in the background of a few programs for the work of the lights and control external devices. So the expansion of the list of startup programs are very necessary.

I can add that. How many number of additional programs you need? One or two? If you know autohotkey scripts, you can add it yourself by editing the XBMCLauncher.ahk file in the source code.

Denon 1612 | Magnat Interior 5001 | AMD A6 3500, ASUS F1A75-M, LG WH14NS40 Blu-Ray, Antec Fusion Remote Silver HTPC | Sony 40HX750
(This post was last modified: 2012-07-28 16:03 by baijuxavior.)
find quote
msderganc Offline
Donor
Posts: 76
Joined: Aug 2010
Reputation: 0
Location: Houston, Texas
Post: #22
Thanks for the great work! This works flawlessly on my system and allows me to put it to sleep now! My electric bill thanks you as well Big Grin
find quote
meridius Offline
Fan
Posts: 709
Joined: Jul 2010
Reputation: 1
Post: #23
(2012-07-28 18:18)msderganc Wrote:  Thanks for the great work! This works flawlessly on my system and allows me to put it to sleep now! My electric bill thanks you as well Big Grin

? Err you can put xbmc into sleep without this app. The reason for this app is people have problems when waking the system up when xbmc is already loaded and can only be fixed when shutting down xbmc and reloading it. And other reasons is the focus can be lost somtimes
(2012-07-28 15:48)baijuxavior Wrote:  @meridius:

[quote]1. you need to ad an option to be able to diable losses focus somtimes it does some weired things on my system
2. could you add an option to check focus once and one time only.

1. You can disable the focus by using Win+F9 shortcut. Are you using this key combination Win+F9 for any other purpose?. Also when you close xbmc, XBMCLauncher will stop sending focus message until xbmc is started again.
2. Will be added in the next version.

Cheers for that I don't use a keyboard as I use xbmc commander on the iPad
(This post was last modified: 2012-07-28 20:01 by meridius.)
find quote
LordMerlin Offline
Member
Posts: 83
Joined: Sep 2009
Reputation: 0
Post: #24
(2012-07-28 15:48)baijuxavior Wrote:  @LordMerlin:
I can add that. How many number of additional programs you need? One or two? If you know autohotkey scripts, you can add it yourself by editing the XBMCLauncher.ahk file in the source code.
Sorry, but i'm need at least 4 app. Thanks.
find quote
yzeyze Offline
Senior Member
Posts: 104
Joined: Jul 2007
Reputation: 0
Post: #25
(2012-07-28 15:48)baijuxavior Wrote:  ...
@yzeyze :

Quote:I had a look in the source code, and can see where to do this, but when I try to compile with AutoHotKey, I keep getting a problem on line 26 with the #warn variable. (this is without making changes to the .ahk file) (XBMCLauncher.ahk file that is).
Do I need to do more than just compile the ahk file with autohotkey?

Thanks for trying the source code. I hope it was easy for you to understand the code logic. I have commented most of the code. Use Autohotkey_L or delete the #warn line.

Quote:one thing I would like is for it not to close XBMC on sleep and fire it up again.

I added this option because when xbmc resumes from hibernation or sleep, it fails to find my hdmi audio and i need to close xbmc and start it again. I will add an option to disable this as per user choice.
...

Yes it was thanks.
My problem was using Autohotkey, not Autohotkey_L (I saw that in the readme, but thought it was a typo - did not know another version was available)
All working now. - I just commented out the 'going to sleep' section, but left in the 'wake up' section - this means that it stays where I was, but if for some reason XBMC was dead either going into or out of sleep, it fires back up again.
Thanks again - handy utility
find quote
oldpainless Offline
Fan
Posts: 506
Joined: Jan 2010
Reputation: 12
Post: #26
i checked all the options at install, set as shell, but when i exit I have a black screen and have to start explorer manually....any suggestions? win7 32bit.



cheers

K
(This post was last modified: 2012-07-29 12:07 by oldpainless.)
find quote
Nimo Offline
Senior Member
Posts: 224
Joined: Nov 2011
Reputation: 3
Location: Germany
Post: #27
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

A/V: Sony KDL52W5500|Yamaha RX-V471|Elac Cinema XL Center|4x Elac Cinema 2 Sat|REL Strata II|Elac Sub 101 ESP
HTPC: Realan E-Q8|ASRock Z77E-ITX|iMon inside mod|i3-3225+HD4k|8GB 2133 RAM|60GB Vertex3|120W Pico PSU|Harmony 650|p8 USB-CEC|Win7 x64|XBMC 12alpha|Skin CE v2 SVN
Server: Raid 5 - 8x 2TB WD AV-GP|Win7 x64|HighPoint 2680
(This post was last modified: 2012-07-29 13:55 by Nimo.)
find quote
oldpainless Offline
Fan
Posts: 506
Joined: Jan 2010
Reputation: 12
Post: #28
ok thanks. I use the Alaska and cant find the exit part in the xml is userdata, so I'll keep an eye hear to see if that gets added.

Cheers

K
find quote
baijuxavior Online
Posting Freak
Posts: 773
Joined: Jan 2012
Reputation: 20
Location: India
Post: #29
The code to start windows when you exit xbmc will work with default confluence skin and other confluence based skins like 'confluence lite mode'. Just edit the exit button in DialogButtonMenu.xml of the skin as shown above in the quote or replace the DialogButtonMenu.xml with the one from XBMCLauncher installer. I have no other skins installed so don't know which xml file to edit for non confluence based skins. But you can edit the xbmclauncher .ahk file to monitor xbmc.exe and start windows when xbmc closes. I will add this option in the next version so that the load window will work with other skins also without editing any xml files.

Denon 1612 | Magnat Interior 5001 | AMD A6 3500, ASUS F1A75-M, LG WH14NS40 Blu-Ray, Antec Fusion Remote Silver HTPC | Sony 40HX750
(This post was last modified: 2012-07-29 17:07 by baijuxavior.)
find quote
LordMerlin Offline
Member
Posts: 83
Joined: Sep 2009
Reputation: 0
Post: #30
Thank you for a program that figured out, don't need to add additional programs to run, I have done what I have 1 through all the rest of the run. In the process of studying was faced with a problem, the display iMon only shows the name of the item, of which initially started ХBМС and the transitions in the menu or when you start playing, nothing changes if the run ХBМС and ХBМСoniMon when Explorer was appointed as the shell then everything is fine. What could this be?
find quote
Post Reply