2013-05-17, 04:03
(2013-05-17, 02:46)JDizzy Wrote: A quick question.You can create a stand alone launcher pointing to your MC18.exe executable file. Then create a favourite of this launcher. If the skin you are using support menu or submenu creation based on favourites, then you just have to select this favourite as menu or submeny entry.
I am using advanced launcher to start a windows program called MC18.exe.
Is there a way to just start the windows program with <onclick> command from a menu without going through all the advanced
launcher sub menus?
or...
One way I figured out was to make the Windows program a Favorite and then used the Favorites menu to launch through Advanced Launcher.
Is there also a way to launch the favorite directly from <onclick>?
Hope that makes sense....
If your skin do not support this feature, then you just have to open your xbmc/userdata/favourites.xml file, and copy/paste the link corresponding to the MC18.exe favourite into your <onclick> tag. For example if your launcher favourite is :
Code:
...
<favourite name="Advance Wars" thumb="/mnt/QNAP/Jeux/Game Boy Advance/thumbs/Advance Wars (E)(Arrogance).jpg">PlayMedia("plugin://plugin.program.advanced.launcher/?5b83b7bb3b344e9eb61db1b378073353/38944fb99c3e9279236180949e663b6c/81492ab54b8d39adc352c967e132b612")</favourite>
...
then the corresponding onclick tag will simply be :
Code:
<onclick>PlayMedia("plugin://plugin.program.advanced.launcher/?5b83b7bb3b344e9eb61db1b378073353/38944fb99c3e9279236180949e663b6c/81492ab54b8d39adc352c967e132b612")</onclick>
Concerning your first question, yes, you can start an executable file from a <onclick> tag without using Advanced Launcher. You just have to call the XBMC.System.Exec() built-in function.