Author Topic: Help me with my command  (Read 2518 times)

0 Members and 2 Guests are viewing this topic.

ElbeCoder

  • Jr. Member
  • **
  • Posts: 37
  • Karma: -2
    • View Profile
Help me with my command
« on: March 04, 2016, 10:57:55 AM »
Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.1.4-->
<command id="339" name="What did he say" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="Go back 10 seconds">
  <action>
    <cmdType>InputKeys.Send</cmdType>
    <params>
      <param>vk:{1}</param>
    </params>
    <cmdRepeat>{2}</cmdRepeat>
  </action>
  <phrase>What did he say</phrase>
  <payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">payloads\1directions.xml</payloadFromXML>
  <payloadRange>1,1</payloadRange>
</command>



I am trying one thing. If im saying What did i miss, what did he say, i missed that. And then kodi would go back like 5,10 seconds. whats wrong

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Help me with my command
« Reply #1 on: March 04, 2016, 11:01:03 AM »
Why do you have a payloadXML and payloadRange in your voice command?

What do you want your macro to do?

It looks like you tried to modify another command but without understanding how it works.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Help me with my command
« Reply #2 on: March 04, 2016, 11:02:09 AM »
If you are not comfortable reading the wiki then you should watch some tutorials in order to get to grips with some of the basics:


ElbeCoder

  • Jr. Member
  • **
  • Posts: 37
  • Karma: -2
    • View Profile
Re: Help me with my command
« Reply #3 on: March 04, 2016, 11:11:09 AM »
Yeah. but i dont want to make much my own commands. i just want to make one. If  i say What did he say? It would reverse or skip back the video or music for 10 seconds.

ElbeCoder

  • Jr. Member
  • **
  • Posts: 37
  • Karma: -2
    • View Profile
Re: Help me with my command
« Reply #4 on: March 04, 2016, 11:34:49 AM »
I have watched that video several times.. i tried. Put input send keys and then key left. Doesnt work. Doesnt do anything. it does take the input key left when saying what did he say..

ElbeCoder

  • Jr. Member
  • **
  • Posts: 37
  • Karma: -2
    • View Profile
Re: Help me with my command
« Reply #5 on: March 04, 2016, 11:43:03 AM »
Got it working. But is there anyway to just go back 5 seconds

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando