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


- Angelscry - 2011-01-24

fr500 Wrote:I've got a feature idea. Could you add launcher id tag to the launcher itself and a way to accept arguments? If you do so skis with support for custom shortcuts on the home menu could have a way to launch common used launchers from the home menu.

Example, in shade now you can create a home screen shorcut to the script (plugin.program.advanced.launcher) if there was the id. and an option to parse arguments you could create a shortcut to the script plugin.program.advanced.launcher("1") for example and that would launch the app with id=1. If no arguments are passed then the normal app view would show.

What do you think?

Image

This feature is already supported by the addon
  • Go into Advanced Launcher
  • Select a launcher
  • Go into launcher context menu and select "Add to Favorite" option
  • Go into you skin sub menu option and select this Favorite as submenu.
It will automatically get the launcher name, launcher thumbs and put it as submenu. It is how it works for me with Alaska.Revisited. This feature is not working for roms, only for launchers. Here are the corresponding code lines of the guisettings.xml file :
Code:
<setting type="string" name="skin.alaska.revisited.programbuttonname_2">Boxee</setting>
<setting type="string" name="skin.alaska.revisited.programbuttonimage_2">/media/emulation/launchers/thumbs/Boxee_thumb.jpg</setting>
<setting type="string" name="skin.alaska.revisited.programbuttonpath_2">RunPlugin(plugin://plugin.program.advanced.launcher/?Boxee,return)</setting>



- Angelscry - 2011-01-24

Rectification : It is also working with roms. You just have to avoid to use special characters (like bracket) into launcher name or rom name to make it works.

Image

Here is how it appear into the guisettings.xml file :
Code:
<setting type="string" name="skin.alaska.revisited.programbuttonname_3">The Legend of Zelda: Ocarina of Time</setting>
<setting type="string" name="skin.alaska.revisited.programbuttonimage_3">/media/emulation/nintendo64/roms/The Legend of Zelda - Ocarina of Time_thumb.jpg</setting>
<setting type="string" name="skin.alaska.revisited.programbuttonpath_3">RunPlugin(plugin://plugin.program.advanced.launcher/?Nintendo 64/The Legend of Zelda: Ocarina of Time,return)</setting>

So if your skin is able to start plugin from submenu using this command line :
Code:
RunPlugin(plugin://plugin.program.advanced.launcher/?[b]#launcher_name#[/b]/[b]#rom_name#[/b],return)
It may works... Nod


- fr500 - 2011-01-24

Angelscry Wrote:Rectification : It is also working with roms. You just have to avoid to use special characters (like bracket) into launcher name or rom name to make it works.

Image

Here is how it appear into the guisettings.xml file :
Code:
<setting type="string" name="skin.alaska.revisited.programbuttonname_3">The Legend of Zelda: Ocarina of Time</setting>
<setting type="string" name="skin.alaska.revisited.programbuttonimage_3">/media/emulation/nintendo64/roms/The Legend of Zelda - Ocarina of Time_thumb.jpg</setting>
<setting type="string" name="skin.alaska.revisited.programbuttonpath_3">RunPlugin(plugin://plugin.program.advanced.launcher/?Nintendo 64/The Legend of Zelda: Ocarina of Time,return)</setting>

So if your skin is able to start plugin from submenu using this command line :
Code:
RunPlugin(plugin://plugin.program.advanced.launcher/?[b]#launcher_name#[/b]/[b]#rom_name#[/b],return)
It may works... Nod

Cool, thanks didn't know it was there already Big Grin


- KiSUAN - 2011-01-24

Well I`ve done some fine tunning to some views...

I added the option to use Gamesys Fanart as Background (thanks Angel) for the Panel view and added the option to have extrathumbs in Slide view.

Image

* AVL + Slide Extrathumbs

Place the extrathumbs in C:\Users\User Name\AppData\Roaming\XBMC\addons\skin.night.purity\extras\avlfanart\(name of the launcher)\

Name the images thumb1.jpg & thumb2.jpg, there is a folder with images an example.

*AVL + Panel Gamesys Background

Images located in C:\Users\User Name\AppData\Roaming\XBMC\addons\skin.night.purity\extras\avlfanart\

Just name the image as the Gamesys, there are some images as example.

You can get the complete list of gamesys from: C:\Users\User Name\AppData\Roaming\XBMC\addons\plugin.program.advanced.launcher\resources\scrapers\gamesys (open with notepad or other)


Enjoy.


- srsobieraj - 2011-01-24

Hi Angelscry & ALA community,

Request/Suggestion/Thought:

"Run Before" & "Run After" inputs for Launchers & Roms.

I'd like to be able to run Xpadder with different configurations depending on the Emulator I'm using. I think the best way to do this would be to include a Run Before option for Launchers. I can simply type the command-line argument that I want to run before and after ALA launches the Emulator. I'd like to do something like this:

Code:
C:\Xpadder\xpadder.exe controller1.profile controller2.profile

<ALA executes emulator>

Taskkill /IM xpadder.exe /F

So I can pass arguments to the command line both before and after ALA runs the emulator.

The problem is that I would need to specify "Run Before" and "Run After" for each Rom, but still have a "default" value. I run a variety of Windows games on my computer and many require a different Xpadder layout.

This solution isn't perfect, but it would solve my problem. Has anyone encountered this problem and solved it? Can anyone help with a better solution? It's driving me nuts! Eek

Would EventGhost be able to solve this problem? ie, use EventGhost to detect a certain application launch, then run Xpadder when it opens and kill it when it closes? Huh


- Angelscry - 2011-01-24

srsobieraj Wrote:Hi Angelscry & ALA community,

Request/Suggestion/Thought:

"Run Before" & "Run After" inputs for Launchers & Roms.

I'd like to be able to run Xpadder with different configurations depending on the Emulator I'm using. I think the best way to do this would be to include a Run Before option for Launchers. I can simply type the command-line argument that I want to run before and after ALA launches the Emulator. I'd like to do something like this:

Code:
C:\Xpadder\xpadder.exe controller1.profile controller2.profile

<ALA executes emulator>

Taskkill /IM xpadder.exe /F

So I can pass arguments to the command line both before and after ALA runs the emulator.

The problem is that I would need to specify "Run Before" and "Run After" for each Rom, but still have a "default" value. I run a variety of Windows games on my computer and many require a different Xpadder layout.

This solution isn't perfect, but it would solve my problem. Has anyone encountered this problem and solved it? Can anyone help with a better solution? It's driving me nuts! Eek

Would EventGhost be able to solve this problem? ie, use EventGhost to detect a certain application launch, then run Xpadder when it opens and kill it when it closes? Huh
After a long reflexion, I have decided to not add pre and post command line support to the Advanced Launcher add-on. It will better to use external scripts or executables to manage other application than the one started. As I have already explained several time here, that you can do this using Autoit scripts. For example in your case you can create a simple script that could look like this :
Code:
if $CmdLine[0] = 1 Then
        Run ( '[b]C:\Xpadder\xpadder.exe controller1.profile controller2.profile[/b]' )
    Run ( 'emulator.exe -arg1 -arg2 "' & $CmdLine[0] & '"' )
    ProcessWaitClose ( "emulator.exe" )
    ProcessClose ( "[b]xpadder.exe[/b]" )
EndIf
Then you could compile it to launcher-emulator.exe exectuable file using Autoit. Then you will have to create a launcher like this :
Code:
...
<name>Game Launcher</name>
<application>c:\\path\[b]launcher-emulator.exe[/b]</application>
<args></args>
...
That's all. The script if simple (6 lines) and will do exactly what you want. Do you can next improve it. For example you can analyses the $CmdLine[0] command line argument and extract the rom filename from it and start xpadder.exe using related controller profile.

Using Evenghost is not a good idea for me.


- User 55003 - 2011-01-24

srsobieraj Wrote:Hi Angelscry & ALA community,

Request/Suggestion/Thought:

"Run Before" & "Run After" inputs for Launchers & Roms.

I'd like to be able to run Xpadder with different configurations depending on the Emulator I'm using. I think the best way to do this would be to include a Run Before option for Launchers. I can simply type the command-line argument that I want to run before and after ALA launches the Emulator. I'd like to do something like this:

Code:
C:\Xpadder\xpadder.exe controller1.profile controller2.profile

<ALA executes emulator>

Taskkill /IM xpadder.exe /F
So I can pass arguments to the command line both before and after ALA runs the emulator.

The problem is that I would need to specify "Run Before" and "Run After" for each Rom, but still have a "default" value. I run a variety of Windows games on my computer and many require a different Xpadder layout.

This solution isn't perfect, but it would solve my problem. Has anyone encountered this problem and solved it? Can anyone help with a better solution? It's driving me nuts! Eek

Would EventGhost be able to solve this problem? ie, use EventGhost to detect a certain application launch, then run Xpadder when it opens and kill it when it closes? Huh

What type of game pad do you have?
With a logitech game pad I just use the logitech profile software..
Create a profile for each emu and select "Apply profiles to games automatically" in global profiler settings.


- srsobieraj - 2011-01-24

Steveb Wrote:What type of game pad do you have?
With a logitech game pad I just use the logitech profile software..
Create a profile for each emu and select "Apply profiles to games automatically" in global profiler settings.

I am using the Xbox 360 Wireless controller. It doesn't have a profiler app unfortunately.

Quote:That's all. The script if simple (6 lines) and will do exactly what you want. Do you can next improve it. For example you can analyses the $CmdLine[0] command line argument and extract the rom filename from it and start xpadder.exe using related controller profile.

I wasn't aware that AutoIt supported If or Switch statements. I will check it out more thoroughly, thank you for your suggestion. Once I have my controller(s) working, I will have a complete Home Theatre experience, and it's all thanks to this add-on!


- Angelscry - 2011-01-24

srsobieraj Wrote:I am using the Xbox 360 Wireless controller. It doesn't have a profiler app unfortunately.

I wasn't aware that AutoIt supported If or Switch statements. I will check it out more thoroughly, thank you for your suggestion. Once I have my controller(s) working, I will have a complete Home Theatre experience, and it's all thanks to this add-on!
Believe me. AutoIt is REALLY powerfull and the online documentation is really complete : http://www.autoitscript.com/autoit3/docs/ Nod When I was a windows user, few years ago, I was able a create command line launchers that were able to start emulators that did not have command line support (by simulate keys typing and windows menu navigation).


- fr500 - 2011-01-24

srsobieraj Wrote:Hi Angelscry & ALA community,

Request/Suggestion/Thought:

"Run Before" & "Run After" inputs for Launchers & Roms.

I'd like to be able to run Xpadder with different configurations depending on the Emulator I'm using. I think the best way to do this would be to include a Run Before option for Launchers. I can simply type the command-line argument that I want to run before and after ALA launches the Emulator. I'd like to do something like this:

Code:
C:\Xpadder\xpadder.exe controller1.profile controller2.profile

<ALA executes emulator>

Taskkill /IM xpadder.exe /F

So I can pass arguments to the command line both before and after ALA runs the emulator.

The problem is that I would need to specify "Run Before" and "Run After" for each Rom, but still have a "default" value. I run a variety of Windows games on my computer and many require a different Xpadder layout.

This solution isn't perfect, but it would solve my problem. Has anyone encountered this problem and solved it? Can anyone help with a better solution? It's driving me nuts! Eek

Would EventGhost be able to solve this problem? ie, use EventGhost to detect a certain application launch, then run Xpadder when it opens and kill it when it closes? Huh


Just do a batch file that launches xpadder, then your emulator then tracks if your emulator is running (maybe each 3 seconds or 10 whatever you want) once it finds the emu is finished kills xpadder and back to emu. You don't need external tools at all, they add complexity and you'd need to learn a scripting language. sh on linux and batch files (or powershell scripts) on windows can do almost anything.


Quote:@echo off

REM launch third party tool
c:\path\to\tool\yourtool.exe


REM launch your app
cd c:\path\to\your\app

app.exe %1

REM wait a couple of seconds in case main process spawns another process
timeout 2

REM oset the following variable to the process that should be tracked
REM usually the same name as the program executable
REM you can find this looking at the Windows Task Manager

set process_1="app.exe"
set ignore_result=INFO:

REM check if the process is still running each interval. If not return to XBMC
REM interval is 3 seconds here
:1

set var=notrunning

for /f "usebackq" %%A in (`tasklist /nh /fi "imagename eq %process_1%"`) do if not %%A==%ignore_result% set var=running

timeout 3
if %var% == running goto :1

REM wait for another interval and then kill 3rd party tool

timeout 3
if %var% == notrunning taskkill /F /IM yourtool.exe


exit

Also you might create a shortcut to this .bat and add it to XBMC, in this shortcut you should set the startup path to your app's path and set it to start minimized to avoid the ugly DOS window popping up.

Remark: I'll eventually clean this up so it's shorter, clearer but I'm doing...well a lot of stuff lately and this just works Big Grin


- Angelscry - 2011-01-24

Version 0.9.12 : This new option bring 2 new setting parameters : default paths folders for launchers thumbs and fanarts.
  • If you let these 2 paths empty, each time you will create a new stand alone launcher, you will be asked to indicate a thumbs and a fanarts folder.
  • If you setup these 2 paths, each time you will create a new stand alone launcher, corresponding thumbs and a fanarts folders will be automatically assigned by this 2 paths.
  • For file launchers, thumbs and fanarts folders will be always, by default, the same than the roms thumbs and fanarts folders.

Image

Changelog
  • update french translation
  • add title formating for title starting by "The", "A" and "An"
  • add thumbs and fanarts default paths settings for launchers



- kevenz - 2011-01-24

after 3 hours I finally managed to get Demul working properly with ALA.... if anyone cares, just ask me Wink


- fr500 - 2011-01-24

Angelscry Wrote:Version 0.9.12 : This new option bring 2 new setting parameters : default paths folders for launchers thumbs and fanarts.
  • If you let these 2 paths empty, each time you will create a new stand alone launcher, you will be asked to indicate a thumbs and a fanarts folder.
  • If you setup these 2 paths, each time you will create a new stand alone launcher, corresponding thumbs and a fanarts folders will be automatically assigned by this 2 paths.
  • For file launchers, thumbs and fanarts folders will be always, by default, the same than the roms thumbs and fanarts folders.

Image

Changelog
  • update french translation
  • add title formating for title starting by "The", "A" and "An"
  • add thumbs and fanarts default paths settings for launchers

Is the article sorting configurable (The, A) I don't like it, it should respect XBMC's global setting for this.

Kudos for the default paths!Shocked


- KiSUAN - 2011-01-24

Great, thanks a lot!!!


News in MOD Cirrus Extended - butchabay - 2011-01-24

Play Game Trailer on press Down for Fanart View:

Image

Image

New Rightlist View, on press Right starts Game Trailer in Fullscreen:

Image

Image