• 1
  • 238
  • 239
  • 240(current)
  • 241
  • 242
  • 453
[CLOSED] Advanced Launcher - Applications Launcher Addon for XBMC
I see, I guess that's why it didn't change anything when I added the quotes then.

Thanks so much for your help. The .bat does exactly what I want it to do now and thanks for Advanced Launcher too, it has to be the best XBMC add-on ever.
I just realized I forgot one other thing. Is it possible to kill a process with .bat file like it is with AutoIt? I was using the terminate function to exit programs launched from Advanced Launcher and binding it to the escape key but since I'm using a .bat now I have no idea how I'd go about that.
(2012-06-26, 21:37)chris295 Wrote: I just realized I forgot one other thing. Is it possible to kill a process with .bat file like it is with AutoIt? I was using the terminate function to exit programs launched from Advanced Launcher and binding it to the escape key but since I'm using a .bat now I have no idea how I'd go about that.
Not really simple to do this using .bat. Personnally I think it's more easy to do key control using autoit scripts. BTW, you can use the best of the 2 worlds. Here is an autoit script including previious .bat commands :

Code:
HotKeySet("{ESC}", "Terminate")

If $CmdLine[0] == 1 Then
    Run ( 'pssuspend "XBMC.exe"')
    Run ( 'pssuspend "Xpadder.exe"')
    Run ( '"G:\XBMC\games\nes\nestopia.exe" "' & $CmdLine[1] & '"', "G:\XBMC\games\nes\" )
    While 1
        Sleep(100)
    WEnd
EndIf

Func Terminate()
    ProcessClose ( "nestopia.exe" )
    Run ( 'pssuspend -r "Xpadder.exe"')
    Run ( 'pssuspend -r "XBMC.exe"')
    Exit 0
EndFunc
That last script is perfect. Thanks again!
ok... probably a noob question.. love this program.. my question is.. is there anyway an advanced launcher program can be launched by a keyboard shortcut? basically i want wmc live tv and recorded tv to start up the way it starts up for advanced launcher.. but by using my harmony remote in xbmc rather than navigating to the menu

any ideas?
Hi guys!
I create different little batch files to close xbmc, start an external application, and after closing it automatically restart xbmc.
I found how to do it thanks to very useful post here and also on official advanced launcher forum.
I need to do this because my htpc has very weak hardware, so watching bluray with xbmc opened take away too much resources to my system. Killing xbmc, instead, allow me to watch them without any problem.
I have no problem with most of the batch for other app, but I cant't do it with PowerDVD12 (again, I know.... I saw a lot of old post about this software....)

XBMC closes, PowerDVD12 starts fine, but when closing it, XBMC doen't start again.
I think the problem it's because PowerDVD starts with PowerDVDlaunchPolicy.exe, but then the process running are:

PowerDVD.exe
PowerDVD12.exe
PowerDVD12Agent.exe
PowerDVD12DMREngine.exe
PowerDVD12ML.exe

Now the batch, very simple, is this:
Quote:pskill XBMC.exe
cd "C:\Program Files\CyberLink\PowerDVD12\"
PDVDLaunchPolicy.exe %1
cd "C:\Program Files\XBMC\"
start /max XBMC.exe

Someone can help me?! Wink
(2012-06-28, 01:59)gman3042 Wrote: ok... probably a noob question.. love this program.. my question is.. is there anyway an advanced launcher program can be launched by a keyboard shortcut? basically i want wmc live tv and recorded tv to start up the way it starts up for advanced launcher.. but by using my harmony remote in xbmc rather than navigating to the menu

any ideas?
Yes it is possible. First you need to select your launcher or item and add it as favorite into XBMC ("C" key, Add to Favorite option). Then open the xbmc/user/favourites.xml file. It may look like this :

Code:
<favourites>
    <favourite name="Tera" thumb="/run/media/angelscry/GWENAEL/Emulation/advanced launcher/gaika/tera online_thumb.jpg">PlayMedia(&quot;plugin://plugin.program.advanced.launcher/?fd4007c4866c0c7f5cc0f9e1037ae85c/29fa6fdd4d8bea7ea949bd6da66a040e&quot;)</favourite>
</favourites>

The more important part is :

Code:
PlayMedia(&quot;plugin://plugin.program.advanced.launcher/?fd4007c4866c0c7f5cc0f9e1037ae85c/29fa6fdd4d8bea7ea949bd6da66a040e&quot;)

which is the XBMC internal command to start the launcher or the item. Then edit (or create) the xbmc/user/keymaps/keyboard.xml file then map the previous command to a key like this :

Code:
<keymap>
  <global>
    <keyboard>
      <f5>PlayMedia(&quot;plugin://plugin.program.advanced.launcher/?fd4007c4866c0c7f5cc0f9e1037ae85c/29fa6fdd4d8bea7ea949bd6da66a040e&quot;)</f5>
    </keyboard>
  </global>
</keymap>

In this example the advanced launcher favourite is assigned to the f5 key.
(2012-06-28, 18:13)Pissa Wrote: Hi guys!
I create different little batch files to close xbmc, start an external application, and after closing it automatically restart xbmc.
I found how to do it thanks to very useful post here and also on official advanced launcher forum.
I need to do this because my htpc has very weak hardware, so watching bluray with xbmc opened take away too much resources to my system. Killing xbmc, instead, allow me to watch them without any problem.
I have no problem with most of the batch for other app, but I cant't do it with PowerDVD12 (again, I know.... I saw a lot of old post about this software....)

XBMC closes, PowerDVD12 starts fine, but when closing it, XBMC doen't start again.
I think the problem it's because PowerDVD starts with PowerDVDlaunchPolicy.exe, but then the process running are:

PowerDVD.exe
PowerDVD12.exe
PowerDVD12Agent.exe
PowerDVD12DMREngine.exe
PowerDVD12ML.exe

Now the batch, very simple, is this:
Quote:pskill XBMC.exe
cd "C:\Program Files\CyberLink\PowerDVD12\"
PDVDLaunchPolicy.exe %1
cd "C:\Program Files\XBMC\"
start /max XBMC.exe

Someone can help me?! Wink
Problem could be effectively due to the fact that the started application is the PowerDVD launcher and not the main PowerDVD process. I don't know how to solve this using .bat file, but it is reallt simple to solve this using Autoit script. This may do the job :

Code:
Run ( 'pskill -t XBMC.exe' )
Run ( '"C:\Program Files (x86)\CyberLink\PowerDVD12\PDVDLaunchPolicy.exe" E:', "C:\Program Files (x86)\CyberLink\PowerDVD12\" )
ProcessWaitClose ( "PowerDVD12.exe" )
Run ( 'start /max XBMC.exe' )

where E: is the bluray drive letter.
nevermind, reboot of xbmc fixed it Smile
(2012-06-29, 02:29)Angelscry Wrote: Problem could be effectively due to the fact that the started application is the PowerDVD launcher and not the main PowerDVD process. I don't know how to solve this using .bat file, but it is reallt simple to solve this using Autoit script. This may do the job :

Code:
Run ( 'pskill -t XBMC.exe' )
Run ( '"C:\Program Files (x86)\CyberLink\PowerDVD12\PDVDLaunchPolicy.exe" E:', "C:\Program Files (x86)\CyberLink\PowerDVD12\" )
ProcessWaitClose ( "PowerDVD12.exe" )
Run ( 'start /max XBMC.exe' )

where E: is the bluray drive letter.

I'll try when I go back home from work and I'll give you a feedback! Wink
Thanks for helping! Smile

Doesn't work! Sad
It correctly starts PowerDVD, but after closing nothing happens!

I tried to change it a little bit, but nothing!
I added full path to XBMC, nothing.
I put the autoit script in PowerDVD folder, nothing
I put the autoit script in XBMC folder, nothing
I control that PowerDVD12.exe closes after closing PowerDVD

I don't undestand where could be the problem....
(2012-06-29, 18:13)Pissa Wrote: Doesn't work! Sad
It correctly starts PowerDVD, but after closing nothing happens!

I tried to change it a little bit, but nothing!
I added full path to XBMC, nothing.
I put the autoit script in PowerDVD folder, nothing
I put the autoit script in XBMC folder, nothing
I control that PowerDVD12.exe closes after closing PowerDVD

I don't undestand where could be the problem....
try to replace :

Code:
Run ( 'start /max XBMC.exe' )

by :

Code:
Run ( '"C:\Program Files (x86)\XBMC\XBMC.exe"' )

in the Autoit Script. There is not reason to not start XBMC once PowerDVD12.exe is closed
It didn't work! Sad

I think the problem is with the many processes that PowerDVD starts. In details:

- PowerDVD.exe -> close after closing the software
- PowerDVD12.exe -> close after closing the software
- PowerDVD12Agent.exe -> doesn't close after closing the software, stay in background
- PowerDVD12DMREngine.exe -> doesn't close after closing the software, stay in background
- PowerDVD12ML.exe -> close after closing the software

I tried to add PowerDVD.exe and PowerDVD12ML.exe to the "ProcessWaitClose" list, and to kill PowerDVD12Agent.exe and PowerDVD12DMREngine.exe, but no lucky! Confused

With other programs, your script works perfectly!
Hey there,

I have a few suggestions, I tried seeing if they had been made before but it's hard to look through all those posts.


1) Ability to rescan images automatically. in other words, tell it automatically download those images for items already in the library (with overwrite capabilities).
2) Also delete image files associated with items deleted from library
3) When linking to new thumbnail or fanart manually, have the program open in the default folders.
4) Change the scan database on the fly: when you're rescanning a thumbnail, it would be nice to be able to change which scrapper it uses instead of having ot change it for the entire program.
The Mi7 (full specs)
HTPC: Antek ISK 300 | Pico 160 | ASRock z77E | i7 3770S | GSkill Ares 8GB | BigShuriken 2 | Crucial 64 SSD
TOYS: Panasonic TC-P58S2 | Onkyo TX-SR608 | Atlantic Tech 2400 | Harmony 1 | iPazzPort ProMini | Mohu 1000 | HomeRun Dual | 2x2TB NAS
(2012-06-30, 11:36)Pissa Wrote: It didn't work! Sad

I think the problem is with the many processes that PowerDVD starts. In details:

- PowerDVD.exe -> close after closing the software
- PowerDVD12.exe -> close after closing the software
- PowerDVD12Agent.exe -> doesn't close after closing the software, stay in background
- PowerDVD12DMREngine.exe -> doesn't close after closing the software, stay in background
- PowerDVD12ML.exe -> close after closing the software

I tried to add PowerDVD.exe and PowerDVD12ML.exe to the "ProcessWaitClose" list, and to kill PowerDVD12Agent.exe and PowerDVD12DMREngine.exe, but no lucky! Confused

With other programs, your script works perfectly!
I will try to found time to install powerDVD 12 on my Windows 7 system this week-end, and if I found the right way to proceed, I will post here the corresponding working script.

(2012-06-30, 13:02)helpermonkey Wrote: Hey there,

I have a few suggestions, I tried seeing if they had been made before but it's hard to look through all those posts.


1) Ability to rescan images automatically. in other words, tell it automatically download those images for items already in the library (with overwrite capabilities).
2) Also delete image files associated with items deleted from library
3) When linking to new thumbnail or fanart manually, have the program open in the default folders.
4) Change the scan database on the fly: when you're rescanning a thumbnail, it would be nice to be able to change which scrapper it uses instead of having ot change it for the entire program.
1) If you want to rescan your items your just have to clear them (go into launcher context menu, "C key" / "Edit Launcher" option / "Manage Items list" / "Clear Items list"), and then perform a new scan. If you, for example, only want to rescan only thumbs images :
  • Export items info into NFO files : go into launcher context menu, "C key" / "Edit Launcher" option / "Manage Items list" / "Export items data to .nfo files"
  • Clear items list : go into launcher context menu, "C key" / "Edit Launcher" option / "Manage Items list" / "Export items data to .nfo files"
  • Into Advanced Launcher settings set "Data & Infos" collecting method to "NFO Files"
  • Into Advanced Launcher settings set "Fanarts" collecting method to "Local Images"
  • Into Advanced Launcher settings set "Thumbs" collecting method to "Scrapers" and check "Overwrite Existing File" option
  • Perform a new scan.
To resume if you want to rescan : Clear items and make another scan.

2) Advanced launcher will never delete images files. How do you make difference between scraped images with Advanced Launcher and images manually download and sorted by users (for its proper collection) for example? Goal of Advanced Launcher is to start application not to manage media related files.

3) What do you mean by default folders?

4) What you suggest here is to assign specific scrapers (data, thumbs and fanarts) to each item (or launcher). That make non sens for me. Once you have scraped the right infos or images for an item, metadata are locally saved. What it the interest to keep a trace of which scraper have been used for this?
  • 1
  • 238
  • 239
  • 240(current)
  • 241
  • 242
  • 453

Logout Mark Read Team Forum Stats Members Help
[CLOSED] Advanced Launcher - Applications Launcher Addon for XBMC24