Kodi Community Forum
Win XBMCLauncher / Launcher4Kodi - All in One Tool for Change Shell, Set Focus and more - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116)
+--- Thread: Win XBMCLauncher / Launcher4Kodi - All in One Tool for Change Shell, Set Focus and more (/showthread.php?tid=136798)



RE: XBMCLauncher - All in One Tool for Change Shell, Set Focus and more - panchon - 2014-03-05

I have configured the playercorefactory, for the powerdvd, but the focus continues enable.

playercorefactory.xml
Code:
<playercorefactory>
    <players>
        <player name="PowerDVD" type="ExternalPlayer" audio="false" video="true">
            <!-- Sustituye xxxx por tu usuario o por la ruta donde esta le fichero PlayDisc.bat-->    
            <filename>C:\Users\MyUsuario\AppData\Roaming\XBMC\userdata\PlayDisc.bat</filename>
            <args>"{1}"</args>
            <hidexbmc>true</hidexbmc>
            <hideconsole>true</hideconsole>
            <warpcursor>none</warpcursor>
        </player>        
    </players>
    <rules action="prepend">
        <!-- Bluray Disc -->
        <rule filetypes="bd|ifo|bdmv" player="PowerDVD"/>
    </rules>
</playercorefactory>

PlayDisc.bat
Code:
@echo off
rem Pon este fichero en: \Roaming\XBMC\userdata\

"C:\Program Files (x86)\CyberLink\PowerDVD13\PDVDLP.exe" E:



RE: XBMCLauncher - All in One Tool for Change Shell, Set Focus and more - baijuxavior - 2014-03-05

Add pdvdlp.exe to the external player list in launcher. This will disable the focus. You can also enable focus for the external player.


RE: XBMCLauncher - All in One Tool for Change Shell, Set Focus and more - panchon - 2014-03-05

thank you.

I have windows 8.1, and this could be the problem.
Because I added the path "C:\Program Files (x86)\CyberLink\PowerDVD13\PDVDLP.exe" to the launcher and the XBMC continues asking for the focus.


RE: XBMCLauncher - All in One Tool for Change Shell, Set Focus and more - panchon - 2014-03-05

(2014-02-28, 16:38)baijuxavior Wrote: I use the code given below to close TMT5. The code is defined at the bottom of the launcher script. My power button sends 'S'. The script will convert 'S' to Ctrl+X to close TMT5.

Code:
#IfWinActive, TotalMedia Theatre 5    
    s::
    SendInput ^x ; close
    return

Where add you this script?


RE: XBMCLauncher - All in One Tool for Change Shell, Set Focus and more - baijuxavior - 2014-03-05

Download the xbmclauncher.ahk from the source code. Then open it in notepad and add the code at the bottom. Save and compile to get exe file.


RE: XBMCLauncher - All in One Tool for Change Shell, Set Focus and more - panchon - 2014-03-05

(2014-03-05, 11:52)baijuxavior Wrote: Add pdvdlp.exe to the external player list in launcher. This will disable the focus. You can also enable focus for the external player.

You have tested, if this runs correctly in Windows 8.1?

thanks


RE: XBMCLauncher - All in One Tool for Change Shell, Set Focus and more - baijuxavior - 2014-03-05

Tested in win 8 and 7 only. Did you try the option focus external player?


RE: XBMCLauncher - All in One Tool for Change Shell, Set Focus and more - panchon - 2014-03-05

yes, the option is selected, but the focus is changed constantly between the powerdvd and the xbmc


RE: XBMCLauncher - All in One Tool for Change Shell, Set Focus and more - baijuxavior - 2014-03-05

I will check the code for bugs.


RE: XBMCLauncher - All in One Tool for Change Shell, Set Focus and more - panchon - 2014-03-05

(2014-03-05, 14:55)baijuxavior Wrote: I will check the code for bugs.

thanks I will try to look the code, If you need any thing ask to me.

thank you.


RE: XBMCLauncher - All in One Tool for Change Shell, Set Focus and more - baijuxavior - 2014-03-05

Try an older version also.


RE: XBMCLauncher - All in One Tool for Change Shell, Set Focus and more - panchon - 2014-03-05

(2014-03-05, 16:20)baijuxavior Wrote: Try an older version also.

an Oldder version of launcher? or windows?


RE: XBMCLauncher - All in One Tool for Change Shell, Set Focus and more - baijuxavior - 2014-03-05

Launcher


RE: XBMCLauncher - All in One Tool for Change Shell, Set Focus and more - panchon - 2014-03-05

I think that the problem is this:

Code:
    if (ExternalPlayer1 != "")
    {
        SplitPath, ExternalPlayer1, playername
        Process, exist, %playername%
        If (ErrorLevel >= 1)
            {    ExternalPlayerRunning = 1
                ExternalPlayerName = %playername%
            }
    }

the ErrorLevel always is 0( I test it in windows 7) with the notepad++. The process name is "notepad++.exe *32".

I check with notepad++.exe, and notepad++.exe *32, but the script not locate the program.

Sorry, I was testing the script the way erroneous. I put the path between the " ", If I put the path without " " ==> C:\Program Files (x86)\Notepad++\notepad++.exe

The script detect the program correctly.


RE: XBMCLauncher - All in One Tool for Change Shell, Set Focus and more - panchon - 2014-03-07

Hi,

I found my error. My problem was in the part of the code that i show in the before post. But It was my problem for don't understand the correctly functionality of the program. I explain it.

The path that I put in the launcher was the same that I put in the "playercorefactory". ( the path of uLauncherTMT6.exe). The problem is that this program launch another caleled TotalMediaTheatre6.exe(or similar). When the launcher try to find the program to put the focus it doesn't found the program.

The solution is find in the taskManager of windows the correct name of the app that we want to put the focus.

Now, I have another problem, could be that i don't the test correctly. But the first time, the player lost the focus, if you put the focus again in the player, it doesn't lose it more.

How I could have the focus since the beginning?

Thanks very much