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 - lokipoki - 2013-07-04

I have the .lnk and test.exe in the same folder though...


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - dishwater63 - 2013-07-06

Not sure if I should post this here or on the Advanced Launcher forums, but hopefully somebody can point me in the right direction. Basically I can't get the Launcher to scrape any info for my ROMs. I can do it, one by one, but how do I get it to automatically scrape all the info? I played around with the settings for over an hour and aside from clicking on each individual ROM, I can't figure it out.

Thanks in advance to anybody who helps.


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2013-07-06

(2013-07-06, 05:31)dishwater63 Wrote: Not sure if I should post this here or on the Advanced Launcher forums, but hopefully somebody can point me in the right direction. Basically I can't get the Launcher to scrape any info for my ROMs. I can do it, one by one, but how do I get it to automatically scrape all the info? I played around with the settings for over an hour and aside from clicking on each individual ROM, I can't figure it out.

Thanks in advance to anybody who helps.
You need first to setup all the scraper (data, thumbs and fanarts) on automatic or semi-automatic mode. Then you need to delete from the launcher list items you want to re-scrap (or delete all the list if you want to rescrap all). Then make a new "Scan for New Item".


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2013-07-06

(2013-07-04, 08:22)lokipoki Wrote:
(2013-07-04, 04:24)Angelscry Wrote:
(2013-07-03, 23:25)lokipoki Wrote: The code of my test.exe is just a test as the name implies:


When .lnk are activated the test.exe wont work. But when I deactivate the .lnk that it works. What do I need to do to get both working? Eventually the test.exe will include a loading screen so that when a game loads I wont see windows... I hope you understand what I mean/

Cheers.
When Advanced Launcher .lnk support is activated, .lnk files are started by explorer.exe. So in your case, lnk file are effectively started (by explorer.exe) but test.exe is not started. When Advanced Launcher .lnk support is desactivated, .lnk files are started by the application defined into the launcher. So in your case, test.exe is started, but not the .lnk files (because your test.exe executable have nothing inside its code to manage and start .lnk files).

Remember that .lnk files ARE NOT executables. .lnk files are shortcuts managed by explorer.exe to redirect to another executable fand start it.

To make you test.exe file working it must manage .lnk files paths as argument and be able to start these lnk. files. According to this page, the way to start .lnk files using autoit is :

Code:
Run(@ComSpec & " /c " & '"C:\Documents and Settings\All Users\Menu Démarrer\Programmes\Microsoft AntiSpyware\Uninstall Microsoft AntiSpyware.lnk"', "", @SW_HIDE)

So to work with Advanced Launcher, your script must be something like this :

Code:
Run(@ComSpec & " /c " & '"' & $CmdLine[1] & '"', "", @SW_HIDE)

And your launcher configuration must be like this :

Application : D:\HTPC\Games\PC\Test.exe
Arguments : "%rom%"
File Extension : lnk
.lnk support : OFF

Ok. I tried exactly that. But when select a game nothing happens Confused
I have taken time to test it on my Windows system this morning and all the last information I have send you are working perfectly on my system. Are you sure you have compiled your autoit script correctly?


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - OpFor Zulu 2 - 2013-07-06

I haven't noticed any mention of Future Pinball, I did not read all 500+ pages nor did I see any listing under Pinball in the Wiki, so, I thought I would just mention it. It works great under ALA, just remove the quotations around %rom% in the arguments line for it to load the .lnk files correctly.

Example for calling a specific table from the shortcut's target line:
"C:\Emulators\Future Pinball\Future Pinball.exe" /open "c:\emulators\Future Pinball\Tables\DEAD_HUNTERS.fpt" /play /exit

Enjoy


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2013-07-06

(2013-07-06, 16:46)OpFor Zulu 2 Wrote: I haven't noticed any mention of Future Pinball, I did not read all 500+ pages nor did I see any listing under Pinball in the Wiki, so, I thought I would just mention it. It works great under ALA, just remove the quotations around %rom% in the arguments line for it to load the .lnk files correctly.

Example for calling a specific table from the shortcut's target line:
"C:\Emulators\Future Pinball\Future Pinball.exe" /open "c:\emulators\Future Pinball\Tables\DEAD_HUNTERS.fpt" /play /exit

Enjoy
Thank for the information.

If the command line is effectively "C:\Emulators\Future Pinball\Future Pinball.exe" /open "c:\emulators\Future Pinball\Tables\DEAD_HUNTERS.fpt" /play /exit, so it will be also possible to do it directly without using any lnk files by creating a files launcher :

Application : C:\Emulators\Future Pinball\Future Pinball.exe
Arguments : /open "%rom%" /play /exit
Items path : c:\emulators\Future Pinball\Tables\
Files extension : fpt


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - n1md4 - 2013-07-08

Angelscry, I have tried so many ways, short of reinstalling, to get openbox permanently booted in the background to handle window management but to no avail.

Would it be possible to show me where in your code I could edit so that openbox was launched in the background automatically before and then closed after an application were launched?


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2013-07-08

(2013-07-08, 00:36)n1md4 Wrote: Angelscry, I have tried so many ways, short of reinstalling, to get openbox permanently booted in the background to handle window management but to no avail.
If you want openbox permanently booted, this must be done at the operating system level (for example into the .xinitrc file) not at the Advanced Launcher level.

(2013-07-08, 00:36)n1md4 Wrote: Would it be possible to show me where in your code I could edit so that openbox was launched in the background automatically before and then closed after an application were launched?
The code need to be modified at 2 differents place (one for standalone launcher and one for files launcher). Just found into the code (launcher_plugin.py) the lines checking the linux operating system :

Code:
...
elif (sys.platform.startswith('linux')):
...

Few lines below you may found these lines :

Code:
...
os.system("\"%s\" %s " % (launcher["application"], arguments))
...

and

Code:
...
os.system("\"%s\" %s " % (application, arguments))
...

Add your code to launch/close openbox before and after these 2 lines.

But in my opinion it will be far better to use a .sh to do that :

Code:
#!/bin/bash

openbox &
/usr/bin/your_app
killall -9 openbox



RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - dishwater63 - 2013-07-08

Thanks Angelscry, but now I got another issue. I let Advanced Launcher add and scrape one of my ROM collections and it seems that a lot of them are wrong. For instance, I have five entries for Mega Man 4, but of course I only have one zipped file of Mega Man 4. The other four entries are pointing to other games, such as "4 Nin Uchi Mahjong" and "Pachio-kun 4". Now, I know the number 4 is playing a role in the incorrect labeling, but how do I go about fixing the issue?

If it matters, I use the No-intro ROM sets. It is a standardized ROM naming convention.


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - oilbag - 2013-07-08

@. Angelscry,
I love both your World Channels and XBMC Tele Fr. Plugins. In the World Channels Plugin,countries category Israel,I24 News,Could you please give an option for I24 News in English also. I was also wondering if you could add GOOD LIFE TV ISRAEL and ISRAEL FOOD CHANNEL. Thank you very much.


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2013-07-08

(2013-07-08, 03:08)dishwater63 Wrote: Thanks Angelscry, but now I got another issue. I let Advanced Launcher add and scrape one of my ROM collections and it seems that a lot of them are wrong. For instance, I have five entries for Mega Man 4, but of course I only have one zipped file of Mega Man 4. The other four entries are pointing to other games, such as "4 Nin Uchi Mahjong" and "Pachio-kun 4". Now, I know the number 4 is playing a role in the incorrect labeling, but how do I go about fixing the issue?

If it matters, I use the No-intro ROM sets. It is a standardized ROM naming convention.
Scraping is based on roms filename, selected system platform and the selected online ressources. So bad scraping could be linked to several things :
  • your file name (as so the query string) is not enough explicit for the search.
  • you have selected the wrong platform system
  • the scraper database do no have the game into it's database
In all these cases, you always have the possibility to change the query string, the system platform and the scrapers sources, and them manually rescrap them or delete them form the list and perform a new "scan for new item".


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - n1md4 - 2013-07-08

(2013-07-08, 02:25)Angelscry Wrote:
(2013-07-08, 00:36)n1md4 Wrote: Angelscry, I have tried so many ways, short of reinstalling, to get openbox permanently booted in the background to handle window management but to no avail.

If you want openbox permanently booted, this must be done at the operating system level (for example into the .xinitrc file) not at the Advanced Launcher level.

I tried this, but I get problems with OB and XBMC fighting for Xorg .. is what it feels like. I tried many variations to this as well, none of them worked.

(2013-07-08, 02:25)Angelscry Wrote: But in my opinion it will be far better to use a .sh to do that :

Code:
#!/bin/bash

openbox &
/usr/bin/your_app
killall -9 openbox

I had considered this, but if I'm going to run an OB session every time I launch an external app, it may as well be hard-coded. Also, how are arguments passed using this method?

(2013-07-08, 02:25)Angelscry Wrote: The code need to be modified at 2 differents place (one for standalone launcher and one for files launcher). Just found into the code (launcher_plugin.py) the lines checking the linux operating system :

Code:
...
elif (sys.platform.startswith('linux')):
...

Few lines below you may found these lines :

Code:
...
os.system("\"%s\" %s " % (launcher["application"], arguments))
...

and

Code:
...
os.system("\"%s\" %s " % (application, arguments))
...

Add your code to launch/close openbox before and after these 2 lines.

I've found where to edit, but I don't know enough of Python to edit it. Can you give me an example of opening and closing OB either side of one of these lines?


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - styx06 - 2013-07-08

(2013-07-08, 12:58)n1md4 Wrote: I had considered this, but if I'm going to run an OB session every time I launch an external app, it may as well be hard-coded. Also, how are arguments passed using this method?

See this guide for your anwer: http://dragly.org/2012/04/11/launching-apps-from-xbmcbuntu-eden/


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2013-07-08

(2013-07-08, 12:58)n1md4 Wrote: I tried this, but I get problems with OB and XBMC fighting for Xorg .. is what it feels like. I tried many variations to this as well, none of them worked.
The booting order is X > Openbox > XBMC. So Openbox had to be started from X (edit .xinitrc file to add openbox-session) and XBMC had to be started from Openbox (edit autostart file into openbox configuration to add xbmc). Do not start Openbox and XBMC both from .xinitrc.

(2013-07-08, 12:58)n1md4 Wrote: I had considered this, but if I'm going to run an OB session every time I launch an external app, it may as well be hard-coded. Also, how are arguments passed using this method?
That's why starting Openbox during the boot sequence is a better choice. Arguments are passed as %1 for the first argument send by Advanced Launcher, %2 for the second argument, %3 for the third argument, etc... See previous styx06 post for more information.

(2013-07-08, 12:58)n1md4 Wrote: I've found where to edit, but I don't know enough of Python to edit it. Can you give me an example of opening and closing OB either side of one of these lines?
No. This solution is the worth one, and I would not encourage/support you to use Advanced Launcher like that.


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - n1md4 - 2013-07-08

Okay, I trust your judgement on this one, it's your add-on after all Smile and will have another go using your suggestions.

Thanks very much for the help!