Topic: Launch Onclick

Hello,

I spent a couple hours looking around for this information. I have Eden 11.0 Confluence. I have created a Home menu item for HyperSpin. I tried:


            <onclick>XBMC.System.Exec("E:\HyperSpin\HyperSpin.exe")</onclick>

I don't like this because it shows my desktop coming and going. So I got this addon. I configured a StandAlone launcher to launch HyperSpin. All is well. What I don't want is to click on programs, click on advanced launcher, click on "HyperSpin".

I tried variants of:

            <onclick>RunPlugin("plugin://plugin.program.advanced.launcher/?ab55c91a6001fbff5fafcc70d56cd958")</onclick>

I have no idea where in God's name the guid at the end is stored or how it is created. Is there a way I can just directly launch my standalone launcher on onclick?


Thanks

Re: Launch Onclick

The more easy way the found the right XBMC command line to start a launcher (or an item) of Advanced Launcher directly from XBMC is to add it as an XBMC favourite. For this, highlight a launcher (or an item) and go into its context menu ("C" key) then select Add to Favourites option. Then edit your /xbmx/userdata/favourites.xml file to discover the right command to use.

Item and stand alone launcher command will be like this :

PlayMedia(&quot;plugin://plugin.program.advanced.launcher/?fd4007c4866c0c7f5cc0f9e1037ae85c/29fa6fdd4d8bea7ea949bd6da66a040e&quot;)

Files launcher command will be like this :

ActivateWindow(10001,&quot;plugin://plugin.program.advanced.launcher/?fd4007c4866c0c7f5cc0f9e1037ae85c&quot;)

So, in your case, the code to start your Hyperspin application will surely be :

<onclick>PlayMedia(&quot;plugin://plugin.program.advanced.launcher/?ab55c91a6001fbff5fafcc70d56cd958&quot;)</onclick>

Re: Launch Onclick

Wow, yeah I knew I was in the ballpark but not making the right plays. Thank you so much!

This is what did it:

            <onclick>PlayMedia(&quot;plugin://plugin.program.advanced.launcher/?4227450d861cb7bf1c6b7db7aa35d558&quot;)</onclick>

I couldn't, for whatever reason, find a favourites.xml file. I guess I wasn't looking in the right place. I was trying to do a content: HyperSpin search in the wrong directories or something, I don't know. It's working well now.

Is there a different way to do this other than adding to favorites? Adding to favourites seems bass ackwards to me. What if I didn't want it in favorites?

BUT I'm brand new to this particular front end. It would seem so much easier to eliminate the guid and just put a ?WhateverYouCalledYourLauchApp instead. I understand XML but not whatever the embedded script is, especially with the &quot; tags. How does that even work? Could the &quot; be eliminated or does the parser truly need it?

Re: Launch Onclick

irondragoon wrote:

Is there a different way to do this other than adding to favorites? Adding to favourites seems bass ackwards to me. What if I didn't want it in favorites?

You can also found the launcher ID number into the launchers.xml file, but using XBMC Favourite is the only way to obtain the real command used by XBMC. Some skins allow you to add favourites to their home menu without needed the edit/copy/paste xml code. This is generally the way to proceed. Editing XML file is not the normal way to proceed. BTW, in all the cases, once you have created your Home menu item, you can delete the XBMC favourite without loosing your Home menu item link.

irondragoon wrote:

BUT I'm brand new to this particular front end. It would seem so much easier to eliminate the guid and just put a ?WhateverYouCalledYourLauchApp instead. I understand XML but not whatever the embedded script is, especially with the " tags. How does that even work? Could the " be eliminated or does the parser truly need it?

ID are automatically generated by Advanced Launcher to identify launchers an items. Using WhateverYouCalledYourLauchApp as ID is not possible in the case where you have different launchers or items with the same name. For exemple : the same game (Sonic the Hedgehog) could exist on two different platforms (Megadrive and Game Gear). It was also not possible to use the file path as ID. For exemple if you want to start the same game but with 2 different emulators. So you must use another way to identify your launchers and items. I have decided to use randomly generated IDs. It may look complicated to use but they offer more flexibilites into the use of Advanced Launcher and, in normal cases, users do not have to use or see these ID numbers : http://www.youtube.com/watch?v=x8edJlmG6lw

Quotes must be used in the case you have spaces into your XBMC command, to clearly define the string parameter. Also XML values containing double quote (") must be escaped as &quot; : http://www.w3schools.com/xml/xml_syntax.asp. That's XBMC which automatically generate these commands, not Advanced Launcher.