<?xml version="1.0" encoding="utf-8"?>
<!--C:\Users\naomi\Desktop\VcGrp_iTach learn payloadXML.xml-->
<VoiceCommands version="">
    <!--this is an exported VoxCommando group-->
    <commandGroup open="True" name="iTach learn payloadXML" enabled="True" prefix="" priority="0" requiredProcess="" description="">
        <command id="755" name="TCP connect iTach Client" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
            <action>
                <cmdType>TCP.Client.Connect</cmdType>
                <cmdString>iTach&amp;&amp;192.168.0.134&amp;&amp;4998&amp;&amp;\x0D</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <event>VC.Loaded</event>
        </command>
        <command id="1152" name="I want to program my {1}" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
            <action>
                <cmdType>Results.SetVar</cmdType>
                <cmdString>LearnMap&amp;&amp;gc_{1}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>Map.CreateTable</cmdType>
                <cmdString>{Var.LearnMap}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>TTS.Speak</cmdType>
                <cmdString>ready to learn buttons for your {1}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>OSD.ShowText</cmdType>
                <cmdString>ready to learn buttons for your {1}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <phrase>I want to</phrase>
            <phrase>learn, program</phrase>
            <phrase optional="true">buttons, codes</phrase>
            <phrase>from my, my</phrase>
            <payloadList>TV, Fan, Stereo, DVD</payloadList>
            <phrase optional="true">remote, remote control</phrase>
        </command>
        <command id="1158" name="Learn button {1}  (XML)" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
            <action>
                <cmdType>Results.SetVar</cmdType>
                <cmdString>LearnButton&amp;&amp;{1}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>Tcp.Client.WriteLn</cmdType>
                <cmdString>iTach&amp;&amp;get_IRL</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>TTS.Speak</cmdType>
                <cmdString>ready, press {1}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>OSD.ShowText</cmdType>
                <cmdString>ready, press {1}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <phrase>learn button</phrase>
            <payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">payloads\payloadAllButtonNames.xml</payloadFromXML>
        </command>
        <command id="1175" name="test that button" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
            <action>
                <cmdType>Tcp.Client.WriteLn</cmdType>
                <cmdString>iTach&amp;&amp;{Var.iTachLearned}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>OSD.ShowText</cmdType>
                <cmdString>{Var.iTachLearned}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <phrase>test that button</phrase>
        </command>
        <command id="1122" name="learn complete set map" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
            <if ifBlockDisabled="False" ifNot="False">
                <ifType>(A)Contains(B)</ifType>
                <ifParams>{1}&amp;&amp;sendir,</ifParams>
                <then>
                    <action>
                        <cmdType>Tcp.Client.WriteLn</cmdType>
                        <cmdString>iTach&amp;&amp;stop_IRL</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                </then>
                <else>
                    <action>
                        <cmdType>VC.StopMacro</cmdType>
                        <cmdString />
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                </else>
            </if>
            <if ifBlockDisabled="False" ifNot="False">
                <ifType>(A)Contains(B)</ifType>
                <ifParams>{Var.LearnMap}{Var.LearnButton}&amp;&amp;Var.</ifParams>
                <then>
                    <action>
                        <cmdType>TTS.Speak</cmdType>
                        <cmdString>error</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                </then>
                <else>
                    <action>
                        <cmdType>Tools.GcTrim</cmdType>
                        <cmdString>{1}&amp;&amp;200&amp;&amp;1</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>Tools.GcCompress</cmdType>
                        <cmdString>{LastResult}&amp;&amp;2&amp;&amp;3&amp;&amp;1</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>Results.SetVar</cmdType>
                        <cmdString>iTachLearned&amp;&amp;{LastResult}</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>Map.Set</cmdType>
                        <cmdString>{Var.LearnMap}&amp;&amp;{Var.LearnButton}&amp;&amp;{LastResult}</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>OSD.ShowText</cmdType>
                        <cmdString>Saved: {Var.LearnMap} / {Var.LearnButton}</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>OSD.AddText</cmdType>
                        <cmdString>{LastResult}</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>TTS.Speak</cmdType>
                        <cmdString>{Var.LearnButton} button saved</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                </else>
            </if>
            <event>iTach</event>
        </command>
    </commandGroup>
</VoiceCommands>