Kodi Community Forum

Full Version: [CLOSED] Advanced Launcher - Applications Launcher Addon for XBMC
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Hmm, i think it had to do with the images already being there, although i tried erasing all of them (for a certain emulator) for testing that scenario, dont know how it worked out though, if i acted logically at that moment i would have retried that scenario again for other emulators if it worked after erasing the thumbs and art, but i cant remember exactly. Maybe the caching wasnt working properly too, i added a GBA emulator and at first it didnt show 98% of the pictures (just two) and today all the thumbs and art was working.
Anyway, i've set the configuration to overwrite, and i've had no problem all evening.

The emulator thing is kinda my pride and joy and it sucked that i couldnt get it to work so thanks for your help!
Knut Anderson Wrote:Hmm, i think it had to do with the images already being there, although i tried erasing all of them (for a certain emulator) for testing that scenario, dont know how it worked out though, if i acted logically at that moment i would have retried that scenario again for other emulators if it worked after erasing the thumbs and art, but i cant remember exactly. Maybe the caching wasnt working properly too, i added a GBA emulator and at first it didnt show 98% of the pictures (just two) and today all the thumbs and art was working.
Anyway, i've set the configuration to overwrite, and i've had no problem all evening.

The emulator thing is kinda my pride and joy and it sucked that i couldnt get it to work so thanks for your help!
Remember that if you already have set thumbs and fanarts for items or launchers and that you decide to replace some local images (out of XBMC and Advanced Launcher)... XBMC cached files will not be immediatly updated. If you want thumb and fanart images to be updated into XBMC you must do it FROM Advanced Launcher.
@Angelscry:

I have this game that needs explorer.exe to shut down when it's played because of color distortion. I want to have a shortcut in XBMC for it.

Like:
1. Kill explorer.exe (windows explorer, not internet explorer)
2. Start game.exe
3. Restart explorer.exe after game.exe exits

Can it even be done at all?
Muyfa666 Wrote:@Angelscry:

I have this game that needs explorer.exe to shut down when it's played because of color distortion. I want to have a shortcut in XBMC for it.

Like:
1. Kill explorer.exe (windows explorer, not internet explorer)
2. Start game.exe
3. Restart explorer.exe after game.exe exits

Can it even be done at all?
It is possible to do this by creating and use a launcher script that will kill explorer before start your game and then restore explorer after the game will be closed.

Do to this, you will first need to download and install the Autoit freeware on a computer (not necessary the computer where XBMC is installed). AutoIt is a BASIC-like scripting language designed for automating the Windows GUI and general scripting. It uses a combination of simulated keystrokes, mouse movement and window/control manipulation in order to automate tasks in a way not possible or reliable with other languages.

You need first to create an Autoit script like this one :
Code:
Run ( "taskkill /F /IM explorer.exe" )
Run ( "[b]C:\Program Files (x86)\game_path\game.exe[/b]" )
ProcessWait ( "[b]game.exe[/b]" )
ProcessWaitClose ( "[b]game.exe[/b]" )
Run ( "C:\Windows\explorer.exe" )
Replace of game.exe and C:\Program Files (x86)\game\game.exe by the game executable filename and game executable full path you want to start. Save this script as game-launcher.au3 for example then right click on it, compile it as game-launcher.exe and save it into the same directory as your game.exe executable.

Finally, into Advanced Launcher, you just have to change the game.exe application by game-launcher.exe.
Hello XBMC forum as this is my first post. I have been using XBMC since its days on XBOX and this is actually my first time to where I felt like I had something to contribute worth posting. I run XBMC in Ubuntu and I use LIRC to map a remote for controlling XBMC. I use Advanced Launcher to launch Firefox from where I have the arrow keys on my remote acting as a mouse and I use a keyboard for character input.

I have an issue where XBMC will queue up my LIRC input while in Firefox and when I return to XBMC, every key i pressed will be entered in rapid succession making XBMC go crazy. I have Firefox launched by Advanced Launcher with a script as follows...

Code:
#!/bin/bash
sudo killall -STOP xbmc.bin
firefox -width 1280 -height 720
sudo killall -CONT xbmc.bin

The above will pause the XBMC thread, execute Firefox, and resume XBMC upon exit of Firefox. This works great for my joypad (XBox360 user space driver), but I noticed that for the case of LIRC however, the remote input still queues up and I get spammed with remote button presses when I return from Firefox. I just wanted to share my solution to the issue, in hope that maybe it can be incorporated into a future release of the plugin or maybe it will just be useful to someone else. I simply modify the launcher_plugin.py file and I locate the lines...

Code:
elif (sys.platform.startswith('linux')):
  os.system("\"%s\" %s " % (launcher["application"], arguments))

and I wrap it with code to stop and restart LIRC...

Code:
elif (sys.platform.startswith('linux')):
  xbmc.executebuiltin('LIRC.stop')
  os.system("\"%s\" %s " % (launcher["application"], arguments))
  xbmc.executebuiltin('LIRC.start')

This works flawlessly...until the next addon update, at which time I have to apply the modifications once again.
Thank you very much Aubrien for the xbmc.executebuiltin('LIRC.stop') codeline. That's efectively a more easy way to disable the LIRC inputs into XBMC while using an external applications. I will test it, and surely add it into the next release. Thank you very much.
Angelscry Wrote:I'm sorry. I'm not able to reproduce your problem of my different systems. If there is a bug, it may occurs after specific actions order or with specific files, paths. So... please... could you post here the content of your launchers.xml file and also give me the more possible information about your :
  • Advanced Launcher settings (collecting method, overwriting option) for thumbs and fanarts,
  • Thumbs and fanarts paths, filename, on your system.
Your problem may also be caused by the XBMC cache that do not refresh instantaneously or correctly.

I'm trying to launch the OnLive app, i'm using this addon to launch Windows executables, not roms or emulators, so i don't need fanarts or thumbs (i suggest to make easy options for users that don't use emulators and fanarts, because right now is a bit confusing).

When i launch the app, XBMC is not being hidden or minimized, so the app runs in background and i can't see it.

regards,
fidoboy Wrote:I'm trying to launch the OnLive app, i'm using this addon to launch Windows executables, not roms or emulators, so i don't need fanarts or thumbs (i suggest to make easy options for users that don't use emulators and fanarts, because right now is a bit confusing).
The more simple way to use Advanced Launcher is to use stand alone launchers and let the thumb and fanart paths as default during the launcher creation. If you do not want to use Advancec Launcher features. it may be better for you to use then Launcher add-on that will more correspond to your needs.

fidoboy Wrote:When i launch the app, XBMC is not being hidden or minimized, so the app runs in background and i can't see it.
I did not know how works the Onlive app, but what I'm suspecting is that the Onlive application use 2 executables files : one as launcher and second one as main application. What happen is :
  • Advanced Launcher/XBMC start Onlive launcher executable.
  • Onlive launcher start Onlive main executable.
  • Onlive launcher is closed.
  • Because the executable started by Advanced Launcher is closed, XBMC get focus (fullscreen) but the Onlive main executable is running into background.
What you can do is to create and use a launcher script that will monitor the 2 Onlive executables and thjat will return XBMC focus only when this 2 executables will be closed.

Do to this, you will first need to download and install the Autoit freeware on a computer (not necessary the computer where XBMC is installed). AutoIt is a BASIC-like scripting language designed for automating the Windows GUI and general scripting. It uses a combination of simulated keystrokes, mouse movement and window/control manipulation in order to automate tasks in a way not possible or reliable with other languages.

You need first to create an Autoit script like this one (executable name are surely different) :
Code:
Run ( "C:\Program Files (x86)\Onlive\onlive_launcher.exe" )
ProcessWait ( "onlive_launcher.exe" )
ProcessWait ( "onlive_main.exe"" )
ProcessWaitClose ( "onlive_launcher.exe" )
ProcessWaitClose ( "onlive_main.exe" )
Save this script as onlive-xbmc-launcher.au3 for example then right click on it, compile it as onlive-xbmc-launcher.exe and save it into the same directory as your onlive_launcher.exe executable.

Finally, into Advanced Launcher, you just have to change the onlive_launcher.exe application by onlive-xbmc-launcher.exe.
Angelscry Wrote:It is possible to do this by creating and use a launcher script that will kill explorer before start your game and then restore explorer after the game will be closed.

Do to this, you will first need to download and install the Autoit freeware on a computer (not necessary the computer where XBMC is installed). AutoIt is a BASIC-like scripting language designed for automating the Windows GUI and general scripting. It uses a combination of simulated keystrokes, mouse movement and window/control manipulation in order to automate tasks in a way not possible or reliable with other languages.

You need first to create an Autoit script like this one :
Code:
Run ( "taskkill /F /IM explorer.exe" )
Run ( "[b]C:\Program Files (x86)\game_path\game.exe[/b]" )
ProcessWait ( "[b]game.exe[/b]" )
ProcessWaitClose ( "[b]game.exe[/b]" )
Run ( "C:\Windows\explorer.exe" )
Replace of game.exe and C:\Program Files (x86)\game\game.exe by the game executable filename and game executable full path you want to start. Save this script as game-launcher.au3 for example then right click on it, compile it as game-launcher.exe and save it into the same directory as your game.exe executable.

Finally, into Advanced Launcher, you just have to change the game.exe application by game-launcher.exe.

Works great! Both with XBMC and without. Tnx alot mate. :-)
Angelscry Wrote:The more simple way to use Advanced Launcher is to use stand alone launchers and let the thumb and fanart paths as default during the launcher creation. If you do not want to use Advancec Launcher features. it may be better for you to use then Launcher add-on that will more correspond to your needs.

I did not know how works the Onlive app, but what I'm suspecting is that the Onlive application use 2 executables files : one as launcher and second one as main application. What happen is :
  • Advanced Launcher/XBMC start Onlive launcher executable.
  • Onlive launcher start Onlive main executable.
  • Onlive launcher is closed.
  • Because the executable started by Advanced Launcher is closed, XBMC get focus (fullscreen) but the Onlive main executable is running into background.
What you can do is to create and use a launcher script that will monitor the 2 Onlive executables and thjat will return XBMC focus only when this 2 executables will be closed.

Do to this, you will first need to download and install the Autoit freeware on a computer (not necessary the computer where XBMC is installed). AutoIt is a BASIC-like scripting language designed for automating the Windows GUI and general scripting. It uses a combination of simulated keystrokes, mouse movement and window/control manipulation in order to automate tasks in a way not possible or reliable with other languages.

You need first to create an Autoit script like this one (executable name are surely different) :
Code:
Run ( "C:\Program Files (x86)\Onlive\onlive_launcher.exe" )
ProcessWait ( "onlive_launcher.exe" )
ProcessWait ( "onlive_main.exe"" )
ProcessWaitClose ( "onlive_launcher.exe" )
ProcessWaitClose ( "onlive_main.exe" )
Save this script as onlive-xbmc-launcher.au3 for example then right click on it, compile it as onlive-xbmc-launcher.exe and save it into the same directory as your onlive_launcher.exe executable.

Finally, into Advanced Launcher, you just have to change the onlive_launcher.exe application by onlive-xbmc-launcher.exe.

Thanks for this script Angelscry, it could be useful for future executables that i could use, but unfortunately OnLive app only uses one exe file. When i launch it, and using the windows task manager i can only see a single process named onlive.exe running all the time, until i exit the app. So this is not the problem.

Using Advanced Launcher i run my app from XBMC and it shows a small dialog at top, saying 'Launching application...' or something like that.. but XBMC remains on top and i can't see the launched application.

regards,
fidoboy Wrote:Using Advanced Launcher i run my app from XBMC and it shows a small dialog at top, saying 'Launching application...' or something like that.. but XBMC remains on top and i can't see the launched application
Ok... Have you activated the Use a fullscreen window rather than true fullscreen option that is present into XBMC system settings?
I have a weird problem.

I installed XBMC Eden Beta 2. I use a batch script to kill XBMC, start DVBViewer and start XBMC on DVBviewer close.

Works good, but everytime I close back DVBViewer and return to XBMC, it suddenly resets it's settings. The language for example returns back from English to German.

That only happens when using the advanced launcher shortcut I made for DVBViewer.
When closing XBMC properly and restarting it, the language stays English!

EDIT: Nevermind! That also happens when rebooting the whole PC, so it's a XBMC problem!
XBMCWin Wrote:I have a weird problem.

I installed XBMC Eden Beta 2. I use a batch script to kill XBMC, start DVBViewer and start XBMC on DVBviewer close.

Works good, but everytime I close back DVBViewer and return to XBMC, it suddenly resets it's settings. The language for example returns back from English to German.

That only happens when using the advanced launcher shortcut I made for DVBViewer.
When closing XBMC properly and restarting it, the language stays English!

EDIT: Nevermind! That also happens when rebooting the whole PC, so it's a XBMC problem!
I think it is always better to close XBMC instead of killing it. When you kill XBMC you did not know exactly what XBMC is doing (update library, update addons, save settings, etc...). Kill an application is the best way to corrupt files.
Hm.. Your tutorial for batch-files suggested "pskill -t XBMC.exe" < that's the line I am using! Wink

EDIT: Found the error source: it's another plugin - I will contact the developer!
just a word about onlive...it work fine without any script!
just launch a .lnk!
cheers
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