Hi,
I'm looking to do something like "Do it again X time", but I have a small prob.
Here is my code :
<?xml version="1.0" encoding="utf-16"?>
<command id="858" name="Encore" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>Results.SetVar</cmdType>
<cmdString>actif&&{PreviousCommand}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<if ifBlockDisabled="False" ifNot="True">
<ifType>(A)Contains(B)</ifType>
<ifParams>{Var.actif}&&Encore</ifParams>
<then>
<action>
<cmdType>Results.SetVar</cmdType>
<cmdString>encore&&{PreviousCommand}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
</then>
<else />
</if>
<action>
<cmdType>VC.TellVox</cmdType>
<cmdString>{Var.encore}</cmdString>
<cmdRepeat>{1}</cmdRepeat>
</action>
<phrase>Recommence, Encore</phrase>
<payloadRange optional="true">1,100</payloadRange>
<phrase optional="true">fois</phrase>
</command>
( Encore == Again , in French
)
It work fine, but just if the last command does not have payloads, and if CommandName and Phrase are same.
I can't use {Last spoken} because the last is "Again". I did not find any solution about that in the forum, so if anyone has an idea, I'm interested.