News:

HOT TIP! Commands and groups can be copied and pasted directly from your command editor to the forum, and vice versa. This makes sharing command XML on the forum much easier!

Main Menu

launch addon from vox

Started by IKROWNI, March 06, 2013, 03:40:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

IKROWNI

how would i go about adding a voice command to vox to go directly to one of my addons?

ive tried using XBMC.ExecBuiltin Runaddon(10025,"plugin://plugin.video.newznab/") but this does nothing at all ive also tried just XBMC.ExecBuiltin Runaddon(plugin.video.newznab)

any help is greatly appreciated

jitterjames

#1
Are you using Eden or Frodo?

You can't use XBMC.*** actions with Frodo, so if you are using Frodo, you should be using XJson.***

you should start by looking at the various commands that are already provided in the default configurations.  I think there is one command in there for the subtitles addon...

IKROWNI

yes i am using frodo, after having a look at the subtitles launch addon settings. i came up with this:




when i attempt to make this launch vox recognizes my command with no problem but nothing happens.

im sorry i just purchased vox today and im trying to get the hang of it i have tons of things running flawlessly for the most part aside from thsi one issue.

jitterjames

Well, XBMC has different types of addons, and I guess this one is a video addon that is not really "executed" per se.

So probably you want to use GUI.ActivateWindow and then it is just a matter of finding the right parameters.

Here's a similar command for a video addon (newznab looked way too complicated to install, sorry)

<?xml version="1.0" encoding="utf-16"?>
<command id="416" name="open nasa videos" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>XJson.Raw</cmdType>
    <cmdString>GUI.ActivateWindow&amp;&amp;"window": "video", "parameters": [ "plugin://plugin.video.nasa" ]</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>open nasa videos</phrase>
</command>


Ideally when you want to post a command you could right click it in your tree and select "copy" and then paste it into a code block on the forum, as I have just done.  then others can simply copy the code block and paste it into a group in their tree.  (You can copy commands, or entire groups this way).

I can't test it but hopefully this command will work for you:

<?xml version="1.0" encoding="utf-16"?>
<command id="422" name="open news nab" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>XJson.Raw</cmdType>
    <cmdString>GUI.ActivateWindow&amp;&amp;"window": "video", "parameters": [ "plugin://plugin.video.newznab" ]</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>open news nab</phrase>
</command>

IKROWNI

hey thanks james it works great and thanks for the tip on copy/pasting code to the forum and vox.