Author Topic: trigger more than one command which needs confirmation won't work  (Read 1929 times)

0 Members and 1 Guest are viewing this topic.

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
VC2.1.2.5
Windows 7 Ultimate
SR: english US

I'm not sure if it is a bug or only not possible - here is what I have done:

I have create a command group which contains two confirm commands. The first command which needs confirmation is triggered with a VC.Tellvox action and works as normal, means - VC ask for a confirmation and the OSD showing up on the screen. After this, the next command is executed in the same way as before and VC does not ask for confirmation - the history window show me the gear symbol with "confirm yes:", but nothing happens.

Here is the Command Group. The command start with the  phrase "good night sarah". I've also attached the VoxLog.txt, maybe it is helpful to see what is wrong.

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.2.5-->
<commandGroup open="True" name="TN42" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="306" name="good night sarah" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>TTSMS.SpeakSync</cmdType>
      <params>
        <param>Do you wanna watch something before you go to sleep?</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>VC.TellVox</cmdType>
      <params>
        <param>watch TV</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>good night sarah</phrase>
  </command>
  <command id="307" name="watch TV" enabled="true" alwaysOn="False" confirm="True" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>EventGhost.Send</cmdType>
      <params>
        <param>Your command</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>VC.TriggerEvent</cmdType>
      <params>
        <param>no TV</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>watch TV</phrase>
  </command>
  <command id="319" name="question pree heat car" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>TTSMS.SpeakSync</cmdType>
      <params>
        <param>its cold outside, should I pree heat the car for you tomorrow?</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>VC.TellVox</cmdType>
      <params>
        <param>pree heat car</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <event>Confirm.Cancel.watch TV</event>
    <event>no TV</event>
  </command>
  <command id="398" name="pree heat car" enabled="true" alwaysOn="False" confirm="True" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>TTSMS.SpeakSync</cmdType>
      <params>
        <param>Ok, should i set a timer for you? If yes, please say for example: "set, pree heat car, to 30 minutes"</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>pree heat car</phrase>
  </command>
</commandGroup>
***********  get excited and make things  **********

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
« Last Edit: December 06, 2014, 10:05:19 AM by jitterjames »
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)

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: trigger more than one command which needs confirmation won't work
« Reply #2 on: December 05, 2014, 09:15:05 AM »
Ok, thanks nime.
Normaly I did not use more than one confirm command.  ;)
***********  get excited and make things  **********