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 - Application, Emulator and ROMs Launcher Addon for XBMC - Angelscry - 2012-05-20

Ok... This is the best I can actually obtain. First, create this autoit script and compile it as eshell-launcher.exe (for exemple) :

Code:
Run(@WindowsDir & "\ehome\ehshell.exe", "", @SW_MAXIMIZE)
WinWaitActive ( "Windows Media Center" )
Run(@WindowsDir & "\pssuspend XBMC.exe")
WinWaitClose ( "Windows Media Center" )
Run(@WindowsDir & "\pssuspend -r XBMC.exe")
Run(@WindowsDir & "\nircmd win max process XBMC.exe")

Then, into Advanced Launcher, edit your MCE launcher, change the application to eshell-launcher.exe and into Advanced Modification menu put "Toggle XBMC Fullscreen" at "Off". On my windows 7 system transition between XBMC and 'MCE is perfect. Transition between MCE and XBMC is not really perfect. We still see a small windows transition during a fraction of second.


RE: [RELEASE] Advanced Launcher - Application, Emulator and ROMs Launcher Addon for XBMC - Angelscry - 2012-05-20

The perfect autoit script...

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

Run(@WindowsDir & "\ehome\ehshell.exe", "", @SW_MAXIMIZE)
WinWaitActive ( "Windows Media Center" )
Run(@WindowsDir & "\pssuspend XBMC.exe")

While 1
    Sleep(100)
WEnd

Func Terminate()
    Run(@WindowsDir & "\pssuspend -r XBMC.exe")
    Run(@WindowsDir & "\nircmd win max process XBMC.exe")
    ProcessClose ( "ehshell.exe" )
    Exit 0
EndFunc

Pressing ESC key will automatically close MCE and return to XBMC.


RE: [RELEASE] Advanced Launcher - Application, Emulator and ROMs Launcher Addon for XBMC - Zellig - 2012-05-20

^^^
Thank you!

I tested it and it works, but I am not having any luck inserting the strings to get direct access to MCE Netflix or even MCE Live TV.

I've tried all sorts of stuff, but basically it aught to be something like this:

Netflix:

Code:
Run(@WindowsDir & "\ehome\ehshell.exe", "/url:windowsmediacenterapp:{e6f46126-f8a9-4a97-9159-b70b07890112}\{982ea9d3-915c-4713-a3c8-99a4688b7c59}?EntryPointParameters=", @SW_MAXIMIZE)

Live TV:

Code:
Run(@WindowsDir & "\ehome\ehshell.exe", "/nostartupanimation /homepage:VideoFullscreen.xml /PushStartPage:True", @SW_MAXIMIZE)

Neither starts anything Sad

Obviously I am doing something wrong, but I am totally stumped.


RE: [RELEASE] Advanced Launcher - Application, Emulator and ROMs Launcher Addon for XBMC - Angelscry - 2012-05-21

If you want to add argument into your command line they must be passed into the first parameter of the autoit Run() fiunction. Second parameter is to indicated to working directory. Working directory is not necessary in your case, so the second parameter must stay empty, and so code lines must be something like this :

Code:
Run(@WindowsDir & "\ehome\ehshell.exe /url:windowsmediacenterapp:{e6f46126-f8a9-4a97-9159-b70b07890112}\{982ea9d3-915c-4713-a3c8-99a4688b7c59}?EntryPointParameters=","", @SW_MAXIMIZE)

Code:
Run(@WindowsDir & "\ehome\ehshell.exe /nostartupanimation /homepage:VideoFullscreen.xml /PushStartPage:True","", @SW_MAXIMIZE)



RE: [RELEASE] Advanced Launcher - Application, Emulator and ROMs Launcher Addon for XBMC - Zellig - 2012-05-21

Thanks, Angelscry. I totally did not get the Autoit argument, I guess Sad Now it works well to load Netflix.

Unfortunately, when I exit WMC, the majority of the time I get a minimized window of XBMC, with the spinning circle and XBMC Not Responding message. I need to force-quit XBMC. Any idea what could be causing it?


RE: [RELEASE] Advanced Launcher - Application, Emulator and ROMs Launcher Addon for XBMC - Angelscry - 2012-05-21

Do you have this problem when you start MCE or only when you start MCE with Netlfix. I have made some tries on my system, and I'm not able to reproduce your problem. So I could be related to something wrong on your system.

Other thing you can try is, instead to suspend/resume XBMC you can directly to close/restart it :

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

Run(@WindowsDir & "\ehome\ehshell.exe", "", @SW_MAXIMIZE)
WinWaitActive ( "Windows Media Center" )
Run("pskill -t XBMC.exe")

While 1
    Sleep(100)
WEnd

Func Terminate()
    Run ( '"C:\Program Files (x86)\XBMC\XBMC.exe"', "", @SW_MAXIMIZE)
    WinWaitActive ( "XBMC" )
    ProcessClose ( "ehshell.exe" )
    Exit 0
EndFunc



RE: [RELEASE] Advanced Launcher - Application, Emulator and ROMs Launcher Addon for XBMC - fablog - 2012-05-21

Hi Angelscry,

Thanks a lot for your work, it's greatly appreciated and your work should be officialy integrated to XBMC!!

I have a minor problem, could you help me? My wii roms and the Dolphin emulator are in a network server (ZSmile. My XBMC is in another computer (CSmile. I would like to suspend XBMC when I start a wii game so I used the information here: http://www.gwenael.org/forum/viewtopic.php?id=5 and created a launcher.bat:

pssuspend "XBMC.exe"
cd "Z:\Emulation\Wii\Dolphin"
Dolphin.exe /e "%1"
pssuspend -r "XBMC.exe"


Sadly, it's not working....I get an Unexpected parameter launcher.bat error in a Dolphin window.

Any advice?


RE: [RELEASE] Advanced Launcher - Application, Emulator and ROMs Launcher Addon for XBMC - reksveks - 2012-05-22

Does Dolphin start running ? I ask because that bat doesn't seem that it should do since it shouldn't switch to the Z folder

pssuspend "XBMC.exe"
Z:
cd "Z:\Emulation\Wii\Dolphin"
Dolphin.exe /e "%1"
pssuspend -r "XBMC.exe"

That should switch to your network server, please tell me if it works because i will be soon implementing something like this


RE: [RELEASE] Advanced Launcher - Application, Emulator and ROMs Launcher Addon for XBMC - Angelscry - 2012-05-22

(2012-05-21, 21:33)fablog Wrote: Hi Angelscry,

Thanks a lot for your work, it's greatly appreciated and your work should be officialy integrated to XBMC!!

I have a minor problem, could you help me? My wii roms and the Dolphin emulator are in a network server (ZSmile. My XBMC is in another computer (CSmile. I would like to suspend XBMC when I start a wii game so I used the information here: http://www.gwenael.org/forum/viewtopic.php?id=5 and created a launcher.bat:

pssuspend "XBMC.exe"
cd "Z:\Emulation\Wii\Dolphin"
Dolphin.exe /e "%1"
pssuspend -r "XBMC.exe"


Sadly, it's not working....I get an Unexpected parameter launcher.bat error in a Dolphin window.

Any advice?
It depend how do you have configured your Dolphin files launcher into Advanced Launcher. Paths containing space must be quoted, so if your .bat launcher code is :

Code:
pssuspend "XBMC.exe"
cd "Z:\Emulation\Wii\Dolphin"
Dolphin.exe /e "%1"
pssuspend -r "XBMC.exe"

Arguments into Advanced Launcher must be set to %rom% (with no quote).
If your arguments into Advanced Launcher are "%rom%" (with quotes), your .bat launcher code must be :

Code:
pssuspend "XBMC.exe"
cd "Z:\Emulation\Wii\Dolphin"
Dolphin.exe /e %1
pssuspend -r "XBMC.exe"

Remember : Double the quotes = no quote.
As your code seems correct, check first if your files launcher is well configured. I think it is your problem.
(2012-05-22, 00:37)reksveks Wrote: Does Dolphin start running ? I ask because that bat doesn't seem that it should do since it shouldn't switch to the Z folder

pssuspend "XBMC.exe"
Z:
cd "Z:\Emulation\Wii\Dolphin"
Dolphin.exe /e "%1"
pssuspend -r "XBMC.exe"

That should switch to your network server, please tell me if it works because i will be soon implementing something like this

cd "Z:\Emulation\Wii\Dolphin" command line automatically define the Z:\Emulation\Wii\Dolphin as workign directory. So no needs to indicate to be on Z: drive.


RE: [RELEASE] Advanced Launcher - Application, Emulator and ROMs Launcher Addon for XBMC - fablog - 2012-05-22

Thanks for your help guys but it doesn't work. Sad

Here are all my directories:

Dolphin: \\SERVER\Jeux videos\Emulation\Wii\Dolphin\Dolphin.exe (I created a a hard link Z:\Emulation\Wii\Dolphin)
Roms: \\SERVER\Jeux videos\Emulation\Wii\Roms Wii (Z:\Emulation\Wii\Roms Wii)
XBMC : Other computer

I precise that if I run directly dolphin.exe from XBMC with Advanced launcher but without a batch file...it works.


RE: [RELEASE] Advanced Launcher - Application, Emulator and ROMs Launcher Addon for XBMC - Angelscry - 2012-05-22

(2012-05-22, 02:37)fablog Wrote: Thanks for your help guys but it doesn't work. Sad

Here are all my directories:

Dolphin: \\SERVER\Jeux videos\Emulation\Wii\Dolphin\Dolphin.exe (I created a a hard link Z:\Emulation\Wii\Dolphin)
Roms: \\SERVER\Jeux videos\Emulation\Wii\Roms Wii (Z:\Emulation\Wii\Roms Wii)
XBMC : Other computer

I precise that if I run directly dolphin.exe from XBMC with Advanced launcher but without a batch file...it works.
Please, post here the content of your launchers.xml file using pastebin service. I cannot help you If I do not know how you have configured your launcher. The .bat file is made to be used with a dolphin files launcher (and not stand alone launcher) and applicaton and roms files must use hard links.





RE: [RELEASE] Advanced Launcher - Application, Emulator and ROMs Launcher Addon for XBMC - fablog - 2012-05-22

Here my launchers.xml : http://pastebin.com/a5m8Tt7W





RE: [RELEASE] Advanced Launcher - Application, Emulator and ROMs Launcher Addon for XBMC - Angelscry - 2012-05-22

(2012-05-22, 04:21)fablog Wrote: Here my launchers.xml : http://pastebin.com/a5m8Tt7W
Hummm... Your launcher configuration seems good. So the problem must be somewhere else.

If you create a .bat like this one :

Code:
pssuspend "XBMC.exe"
cd "Z:\Emulation\Wii\Dolphin"
Dolphin.exe /e "Z:\Emulation\Gamecube\Roms GC\F-Zero GX.iso"
pssuspend -r "XBMC.exe"

And you start it directly from Windows (not from XBMC/AdvancedLauncher). Does the game start correctly?


RE: [RELEASE] Advanced Launcher - Application, Emulator and ROMs Launcher Addon for XBMC - fablog - 2012-05-23

Doesn't work, I got this:

C:\Users\fabien\Desktop>pssuspend "XBMC.exe"

PsSuspend v1.06 - Process Suspender
Copyright ® 2001-2003 Mark Russinovich
Sysinternals

Process XBMC.exe suspended.


C:\Users\fabien\Desktop>cd "Z:\Emulation\Wii\Dolphin"

C:\Users\fabien\Desktop>Dolphin.exe /e "Z:\Emulation\Gamecube\Roms GC\F-Zero GX.
iso"
'Dolphin.exe' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\fabien\Desktop>pssuspend -r "XBMC.exe"

PsSuspend v1.06 - Process Suspender
Copyright ® 2001-2003 Mark Russinovich
Sysinternals

Process XBMC.exe resumed.


But, it works like that:
pssuspend "XBMC.exe"
Z:\Emulation\Wii\Dolphin\Dolphin.exe /e "Z:\Emulation\Gamecube\Roms GC\F-Zero GX.iso"
pssuspend -r "XBMC.exe"

What should be the batch file to reach the Dolphine directory and the iso directory with Advanced Launcher?


RE: [RELEASE] Advanced Launcher - Application, Emulator and ROMs Launcher Addon for XBMC - eoghan - 2012-05-23

windows 7 user.first time setting up emulators and roms.i have advanced launcher and zsnes working and it opens mariokart, however mariokart wont open fullscreen.i have it setup to fullscreen in zsnes.so when i open up zsnes outside of xbmc and load mariokart everythings fine but within xbmc it opens it only two thirds of the screen and i cant see the top.i've tried everything i can think of.any help would be appreciated