1
VoxCommando Basics and Core Features / Re: Alternatives to using a lot of if() cases?
« on: July 18, 2015, 03:40:54 PM »
Thanks very much!!!!!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.5.1-->
<command id="148" name="Speed" 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>{LastSpoken}&&25</ifParams>
<then>
<action>
<cmdType>DxInput.KeyPress</cmdType>
<params>
<param>7</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Sound.PlayWav</cmdType>
<params>
<param>E:\A.S.T.R.A VoicePack\A.S.T.R.A VoicePack wav\A.S.T.R.A VoicePack\engines thrusters and drives\etd increments\25 sir.wav</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.StopMacro</cmdType>
<params />
<cmdRepeat>1</cmdRepeat>
</action>
</then>
<else />
</if>
<if ifBlockDisabled="False" ifNot="False">
<ifType>(A)Contains(B)</ifType>
<ifParams>{LastSpoken}&&пятьдесят</ifParams>
<then>
<action>
<cmdType>DxInput.KeyPress</cmdType>
<params>
<param>8</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Sound.PlayWav</cmdType>
<params>
<param>E:\A.S.T.R.A VoicePack\A.S.T.R.A VoicePack wav\A.S.T.R.A VoicePack\engines thrusters and drives\etd increments\understood fifty percent.wav</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.StopMacro</cmdType>
<params />
<cmdRepeat>1</cmdRepeat>
</action>
</then>
<else />
</if>
<if ifBlockDisabled="False" ifNot="False">
<ifType>(A)Contains(B)</ifType>
<ifParams>{LastSpoken}&&семьдесят пять</ifParams>
<then>
<action>
<cmdType>DxInput.KeyPress</cmdType>
<params>
<param>9</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Sound.PlayWav</cmdType>
<params>
<param>E:\A.S.T.R.A VoicePack\A.S.T.R.A VoicePack wav\A.S.T.R.A VoicePack\engines thrusters and drives\etd increments\75%.wav</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.StopMacro</cmdType>
<params />
<cmdRepeat>1</cmdRepeat>
</action>
</then>
<else />
</if>
<if ifBlockDisabled="False" ifNot="False">
<ifType>(A)Contains(B)</ifType>
<ifParams>{LastSpoken}&&максимум</ifParams>
<then>
<action>
<cmdType>DxInput.KeyPress</cmdType>
<params>
<param>0</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Sound.PlayWav</cmdType>
<params>
<param>E:\A.S.T.R.A VoicePack\A.S.T.R.A VoicePack wav\A.S.T.R.A VoicePack\engines thrusters and drives\etd increments\going to maximum.wav</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.StopMacro</cmdType>
<params />
<cmdRepeat>1</cmdRepeat>
</action>
</then>
<else />
</if>
<phrase optional="true">Скорость</phrase>
<phrase optional="true">на</phrase>
<payloadList>25,пятьдесят,семьдесят пять,максимум</payloadList>
<phrase optional="true">процентов</phrase>
<phrase optional="true">скорости</phrase>
</command>
For example i want insert in Last spoken were value 25 more value for example "двадцать пять" because if more value VOX understand better