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 - qtipbailey - 2013-06-14

Question: OK, so I created a launcher that launches Firefox with arguments such that it opens my Netflix home page in full screen mode and when closing Firefox it returns me to XBMC. So, I essentially have my own little Netflix add-on. I even gave it a Netflix icon. Now, is there no way to place the launcher I created into the Videos->Add-ons menu? So along with the Hulu, YouTube, etc. video plugins, my Netflix "add-on" will also be listed there?

Frodo, default Confluence skin


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

(2013-06-14, 21:14)qtipbailey Wrote: Question: OK, so I created a launcher that launches Firefox with arguments such that it opens my Netflix home page in full screen mode and when closing Firefox it returns me to XBMC. So, I essentially have my own little Netflix add-on. I even gave it a Netflix icon. Now, is there no way to place the launcher I created into the Videos->Add-ons menu? So along with the Hulu, YouTube, etc. video plugins, my Netflix "add-on" will also be listed there?

Frodo, default Confluence skin
No, it is not possible to do this using Confluence Skin. The way to do what you are asking, is normally to create a Favourite of your Netlix Launcher, and under skin settings, add this favourite as a video submenu entry. But Confluence skin, at the opposite of others skins, do not allows to add favourites as menu entry.


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

(2013-06-14, 21:14)styx06 Wrote: SOLVED!

I initally followed the Audio Setup guide from the wiki up till editing the settings in the alsamixer. From there the sound over XBMC worked, but apparently the config was incomplete after all.

Followed the rest of the guide, and everyting is okay now.
Well....almost. After closing the script sometimes (yes, sometimes) the returning XBMC window is offset down (so inducing a black bar on the top). Will try a closing wmctrl command at the end of the script
I also a problem that I encounter on my linux based HTPC system. It seems that restoring XBMC into fullscreen mode occurs in 2 steps under openbox : maximizing the XBMC windows and put it into fullscreen. That the transition between the two steps that we visualy observe.

First thing you can try to avoid this is to go into your launcher settings : Edit Launcher > Advanced modification > and set Toogle XBMC into Windows mode to OFF. Like this XBMC will stay into fullscreen mode when you will start or close your script.

In addition, the second thing you can try, is using the wmctrl command in your script to move XBMC windows on the second desktop before starting your application, then return XBMC windows to the active Desktop (Desktop 1) after closing your application.


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - leftywhat - 2013-06-17

(2013-06-12, 20:51)jaydash Wrote: Kinda related to Advanced Launcher, I promise...

After starting up XBMC on Windows 7 something steals focus away after 30 seconds or so. I've created an ALT-Tab button on my remote to get around the problem, but it's annoying. I found the instructions below which detail a registry fix to prevent this from happening... thought it might be a more permanent solution, as opposed to fixing whatever is currently stealing focus, only to have something new pop up...

And here's how it's Advanced Launcher related! MY question/concern is simply: would this mess up/interfere with anything Advanced Launcher related? I use AL for launching into WMC's Netflix app and for launching PC games and console emulations. AL is a huge part of any good XBMC HTPC setup, so can't risk breaking it!

Try using the program "Focus Bitch", I re-uploaded it here
It should work perfectly and far easier than the way you've mentioned.


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - styx06 - 2013-06-17

(2013-06-15, 15:19)Angelscry Wrote: In addition, the second thing you can try, is using the wmctrl command in your script to move XBMC windows on the second desktop before starting your application, then return XBMC windows to the active Desktop (Desktop 1) after closing your application.

Adding wmctrl line before killing openbox did the trick.

Next up: audio stops after a while when the TV screen goes to sleep. Apparently it kills of the complete HDMI signal, including audio.
No energy saving options turned on in the TV, so must be something induced by XBMC...


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - bakito - 2013-06-17

@ styx06

Are you using an ATI card?
I run into a similar problem of sound off after tv went to sleep...it came from shitty drivers...
if so try to use the latest drivers for your card...it work for me.
Good luck
cheers


RE: Start Windows 8 Metro Apps - gizmotoy - 2013-06-18

(2012-11-24, 20:59)Angelscry Wrote: Start Windows 8 Metro Apps.

First you need to create Internet shortcuts (.url files) that will point to the right application url. For the credits, the description how to proceed come from this website : http://www.itsjustwhatever.com/2012/10/28/launch-windows-8-metro-apps-from-a-desktop-shortcut-or-command-line/

1. Found a Windows 8 Metro application URL :
  • Press the windows key and x to pull up the new admin menu.
  • Choose run.
  • Type in regedit and press enter.
  • Open the HKEY_CURRENT_USER folder, then > Software > Classes > Extensions > Contractld > Windows.Protocol > Packageld.
  • You should find a list of many of the installed apps here. To get the app URL, open the folder structure you want until you get to CustomProperties folder.
  • In that folder you should see a registry entry on the right side of the screen that says Name and then to the right of that is the particular application URL you will need to use.

Image
Here is an example for the Pinball FX2 game. The application URL is : xboxliveapp-1297290209.


2. Create the internet shortcut files :
  • Go back to the Windows desktop and right click on it.
  • Select New > Shortcut.
  • Enter the application URL where it asks for the location and press next.
  • Enter the Application name you want displayed in your shortcut and press finish. A .url file will be created (the file extension may be not visible).

Image
Here is an example with the previous Pinball FX2 game application URL.

Do the same for all the Windows 8 applications you want to start from XBMC and put all the created shortcut files into the same directory.


3. Setup Advanced Launcher :
  • Create a File launcher.
  • Select C:\Windows\explorer.exe as application.
  • Define "%rom%" as arguments.
  • Set url as file extension.
  • Then point the folder (containing all the created shortcut files) as item folder.

Once the launcher is created, perform a "scan new items" to add the Metro Applications into Advanced Launcher.

Actually this method works great on my system to start Metro Application (but not for all the applications). To close and application an return to XBMC you just have to use the ALT+ESC keys combination.

I tried using this method to create a launcher for the Metro version of Netflix. The setup works fine, but Windows says "Do you want to allow this website to open an app on your computer." I have to click allow every time. I tried lowering the security settings in Internet Explorer, but nothing seems to work. Any idea what I need to change to make this work right?


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - styx06 - 2013-06-18

(2013-06-17, 14:13)bakito Wrote: @ styx06

Are you using an ATI card?
I run into a similar problem of sound off after tv went to sleep...it came from shitty drivers...
if so try to use the latest drivers for your card...it work for me.
Good luck
cheers

Am using NVIDIA card, but will also check if drivers need to be updated. Thanks!


RE: Start Windows 8 Metro Apps - Angelscry - 2013-06-18

(2013-06-18, 05:00)gizmotoy Wrote:
(2012-11-24, 20:59)Angelscry Wrote: Start Windows 8 Metro Apps.

First you need to create Internet shortcuts (.url files) that will point to the right application url. For the credits, the description how to proceed come from this website : http://www.itsjustwhatever.com/2012/10/28/launch-windows-8-metro-apps-from-a-desktop-shortcut-or-command-line/

1. Found a Windows 8 Metro application URL :
  • Press the windows key and x to pull up the new admin menu.
  • Choose run.
  • Type in regedit and press enter.
  • Open the HKEY_CURRENT_USER folder, then > Software > Classes > Extensions > Contractld > Windows.Protocol > Packageld.
  • You should find a list of many of the installed apps here. To get the app URL, open the folder structure you want until you get to CustomProperties folder.
  • In that folder you should see a registry entry on the right side of the screen that says Name and then to the right of that is the particular application URL you will need to use.

Image
Here is an example for the Pinball FX2 game. The application URL is : xboxliveapp-1297290209.


2. Create the internet shortcut files :
  • Go back to the Windows desktop and right click on it.
  • Select New > Shortcut.
  • Enter the application URL where it asks for the location and press next.
  • Enter the Application name you want displayed in your shortcut and press finish. A .url file will be created (the file extension may be not visible).

Image
Here is an example with the previous Pinball FX2 game application URL.

Do the same for all the Windows 8 applications you want to start from XBMC and put all the created shortcut files into the same directory.


3. Setup Advanced Launcher :
  • Create a File launcher.
  • Select C:\Windows\explorer.exe as application.
  • Define "%rom%" as arguments.
  • Set url as file extension.
  • Then point the folder (containing all the created shortcut files) as item folder.

Once the launcher is created, perform a "scan new items" to add the Metro Applications into Advanced Launcher.

Actually this method works great on my system to start Metro Application (but not for all the applications). To close and application an return to XBMC you just have to use the ALT+ESC keys combination.

I tried using this method to create a launcher for the Metro version of Netflix. The setup works fine, but Windows says "Do you want to allow this website to open an app on your computer." I have to click allow every time. I tried lowering the security settings in Internet Explorer, but nothing seems to work. Any idea what I need to change to make this work right?
You problem is mostly related to Windows user account control (UAC). Try to disabling it : http://blogs.msdn.com/b/hyperyash/archive/2012/07/18/disabling-user-account-control-in-windows-8.aspx

(2013-06-18, 11:57)styx06 Wrote:
(2013-06-17, 14:13)bakito Wrote: @ styx06

Are you using an ATI card?
I run into a similar problem of sound off after tv went to sleep...it came from shitty drivers...
if so try to use the latest drivers for your card...it work for me.
Good luck
cheers

Am using NVIDIA card, but will also check if drivers need to be updated. Thanks!
Have you try to disabling sleeping mode into XBMC and into your linux system? http://www.gwenael.org/forum/viewtopic.php?id=267


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - lokipoki - 2013-06-19

Hey.

I'm trying to pass parameter to run a .lnk.

Here is my code:

Code:
Run(@ComSpec & ' /c "D:\HTPC\Games\PC\& $CmdLine[2] &.lnk", @DesktopCommonDir, @SW_HIDE)

It wont compile. Whats wrong in my code?

Cheers.


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

(2013-06-19, 13:14)lokipoki Wrote: Hey.

I'm trying to pass parameter to run a .lnk.

Here is my code:

Code:
Run(@ComSpec & ' /c "D:\HTPC\Games\PC\& $CmdLine[2] &.lnk", @DesktopCommonDir, @SW_HIDE)

It wont compile. Whats wrong in my code?

Cheers.
You forget to open/close some single quotes.

Code:
Run(@ComSpec & ' /c "D:\HTPC\Games\PC\& $CmdLine[2]' & '.lnk"', @DesktopCommonDir, @SW_HIDE)

BTW, do you know that Advanced Launcher natively support start of windows .lnk files? http://www.gwenael.org/xbmc/index.php?title=File_shortcuts and http://www.youtube.com/watch?v=JyfRa7gygEc


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - lokipoki - 2013-06-19

(2013-06-19, 14:27)Angelscry Wrote:
(2013-06-19, 13:14)lokipoki Wrote: Hey.

I'm trying to pass parameter to run a .lnk.

Here is my code:

Code:
Run(@ComSpec & ' /c "D:\HTPC\Games\PC\& $CmdLine[2] &.lnk", @DesktopCommonDir, @SW_HIDE)

It wont compile. Whats wrong in my code?

Cheers.
You forget to open/close some single quotes.

Code:
Run(@ComSpec & ' /c "D:\HTPC\Games\PC\& $CmdLine[2]' & '.lnk"', @DesktopCommonDir, @SW_HIDE)

BTW, do you know that Advanced Launcher natively support start of windows .lnk files? http://www.gwenael.org/xbmc/index.php?title=File_shortcuts and http://www.youtube.com/watch?v=JyfRa7gygEc

What I'm trying to achieve is that:

- my .lnk (the one I read into xbmc) point to launcher.exe (autoit)
- and the launcher.exe runs then the game .lnk (in a different folder)
- the launcher.exe itself shows a little loading screen with the cd (pc games) spinning and a fanart as background

But I got stuck. I'm using the code (improved) above in my launcher.exe but the game wouldn't start. It just switches to windows. My argument is %rom% and the application is explorer.exe in advanced launcher.

What am I doing wrong?

Cheers.


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

(2013-06-19, 14:58)lokipoki Wrote:
(2013-06-19, 14:27)Angelscry Wrote:
(2013-06-19, 13:14)lokipoki Wrote: Hey.

I'm trying to pass parameter to run a .lnk.

Here is my code:

Code:
Run(@ComSpec & ' /c "D:\HTPC\Games\PC\& $CmdLine[2] &.lnk", @DesktopCommonDir, @SW_HIDE)

It wont compile. Whats wrong in my code?

Cheers.
You forget to open/close some single quotes.

Code:
Run(@ComSpec & ' /c "D:\HTPC\Games\PC\& $CmdLine[2]' & '.lnk"', @DesktopCommonDir, @SW_HIDE)

BTW, do you know that Advanced Launcher natively support start of windows .lnk files? http://www.gwenael.org/xbmc/index.php?title=File_shortcuts and http://www.youtube.com/watch?v=JyfRa7gygEc

What I'm trying to achieve is that:

- my .lnk (the one I read into xbmc) point to launcher.exe (autoit)
- and the launcher.exe runs then the game .lnk (in a different folder)
- the launcher.exe itself shows a little loading screen with the cd (pc games) spinning and a fanart as background

But I got stuck. I'm using the code (improved) above in my launcher.exe but the game wouldn't start. It just switches to windows. My argument is %rom% and the application is explorer.exe in advanced launcher.

What am I doing wrong?

Cheers.
Your argument must not be %rom% but %romname%. As indicated into the user guide, %rom% is returning the complete path of the rom file (path+name+extension) while %romname% is just returning the name of the file without extension. Also your script use the parameter $CmdLine[2], so this mean that your autoscript is waiting at least 2 arguments. And as you write before it seems that you only paste one through Advanced Launcher.


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - lokipoki - 2013-06-19

(2013-06-19, 15:20)Angelscry Wrote:
(2013-06-19, 14:58)lokipoki Wrote:
(2013-06-19, 14:27)Angelscry Wrote: You forget to open/close some single quotes.

Code:
Run(@ComSpec & ' /c "D:\HTPC\Games\PC\& $CmdLine[2]' & '.lnk"', @DesktopCommonDir, @SW_HIDE)

BTW, do you know that Advanced Launcher natively support start of windows .lnk files? http://www.gwenael.org/xbmc/index.php?title=File_shortcuts and http://www.youtube.com/watch?v=JyfRa7gygEc

What I'm trying to achieve is that:

- my .lnk (the one I read into xbmc) point to launcher.exe (autoit)
- and the launcher.exe runs then the game .lnk (in a different folder)
- the launcher.exe itself shows a little loading screen with the cd (pc games) spinning and a fanart as background

But I got stuck. I'm using the code (improved) above in my launcher.exe but the game wouldn't start. It just switches to windows. My argument is %rom% and the application is explorer.exe in advanced launcher.

What am I doing wrong?

Cheers.
Your argument must not be %rom% but %romname%. As indicated into the user guide, %rom% is returning the complete path of the rom file (path+name+extension) while %romname% is just returning the name of the file without extension. Also your script use the parameter $CmdLine[2], so this mean that your autoscript is waiting at least 2 arguments. And as you write before it seems that you only paste one through Advanced Launcher.

Yeah I changed it to $CmdLine[1] and %romname%. But now windows indicates that it couldn't find the .ink Sad


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

(2013-06-19, 15:55)lokipoki Wrote:
(2013-06-19, 15:20)Angelscry Wrote:
(2013-06-19, 14:58)lokipoki Wrote: What I'm trying to achieve is that:

- my .lnk (the one I read into xbmc) point to launcher.exe (autoit)
- and the launcher.exe runs then the game .lnk (in a different folder)
- the launcher.exe itself shows a little loading screen with the cd (pc games) spinning and a fanart as background

But I got stuck. I'm using the code (improved) above in my launcher.exe but the game wouldn't start. It just switches to windows. My argument is %rom% and the application is explorer.exe in advanced launcher.

What am I doing wrong?

Cheers.
Your argument must not be %rom% but %romname%. As indicated into the user guide, %rom% is returning the complete path of the rom file (path+name+extension) while %romname% is just returning the name of the file without extension. Also your script use the parameter $CmdLine[2], so this mean that your autoscript is waiting at least 2 arguments. And as you write before it seems that you only paste one through Advanced Launcher.

Yeah I changed it to $CmdLine[1] and %romname%. But now windows indicates that it couldn't find the .ink Sad
Oupsss... try this instead :
Code:
Run(@ComSpec & ' /c "D:\HTPC\Games\PC\' & $CmdLine[1] & '.lnk"', @DesktopCommonDir, @SW_HIDE)