Author Topic: Command starting with payloadxml not recognized  (Read 1707 times)

0 Members and 1 Guest are viewing this topic.

GMib

  • Jr. Member
  • **
  • Posts: 26
  • Karma: 0
    • View Profile
Command starting with payloadxml not recognized
« on: June 14, 2014, 06:00:24 PM »
a command that worked on the v1 no longer works on v2, command start with payload xml.
if i add a phrase at begining, its work.

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 1.9.5.6-->
<command id="397" name="Direction {1}" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>InputKeys.Send</cmdType>
    <params>
      <param>{{1}}</param>
    </params>
    <cmdRepeat>{2}</cmdRepeat>
  </action>
  <payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">payloads\4directions-frmonter.xml</payloadFromXML>
  <payloadRange>1,10</payloadRange>
</command>

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Command starting with payloadxml not recognized
« Reply #1 on: June 14, 2014, 06:20:41 PM »
En fait, c'est un peu étrange que cette commande ait fonctionné avec version 1.

Voir : http://voxcommando.com/forum/index.php?topic=1414.0

It's actually weird that it was working for you before. James has always said that every command needs a phrase in it somewhere. The phrase serves as the "ID" for the command, if I understand him correctly. It doesn't need to be at the beginning of the command, but it needs a phrase somewhere, not just payloads, as far as I know.
« Last Edit: June 14, 2014, 07:12:21 PM by nime5ter »
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Command starting with payloadxml not recognized
« Reply #2 on: June 14, 2014, 08:40:41 PM »
This is not a bug. This is how the program  has always worked.

GMib

  • Jr. Member
  • **
  • Posts: 26
  • Karma: 0
    • View Profile
Re: Command starting with payloadxml not recognized
« Reply #3 on: June 15, 2014, 03:22:19 AM »
effectivement, je n'arrive plus non plus à faire marcher cette commande sur la v1, je suis pourtant sur d'avoir utiliser souvent cette commande avec succès auparavant.
c'est pas trop grave, je vais remplacer le payload par 4 commandes.
désole pour le dérangement ;)

indeed,I can not seem to run this command on the v1, I have yet to use this command often successfully before.
it is not too bad, I'll replace the payload by 4 orders.
sorry for the inconvenience;)