Kodi Community Forum
[CLOSED] Advanced Launcher - Applications Launcher Addon for XBMC - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Game Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=291)
+---- Thread: [CLOSED] Advanced Launcher - Applications Launcher Addon for XBMC (/showthread.php?tid=85724)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - chris295 - 2012-06-26

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.


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2012-06-27

(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



RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - chris295 - 2012-06-27

That last script is perfect. Thanks again!


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - gman3042 - 2012-06-28

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?


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Pissa - 2012-06-28

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


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2012-06-29

(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.


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2012-06-29

(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.


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - gman3042 - 2012-06-29

nevermind, reboot of xbmc fixed it Smile


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Pissa - 2012-06-29

(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




RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Pissa - 2012-06-29

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....


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2012-06-29

(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


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Pissa - 2012-06-30

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!


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - helpermonkey - 2012-06-30

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.


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2012-06-30

(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.




RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2012-06-30

(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?