Intags auto 'close numbers' feature

hello,
is it possible to set Voicecomputer up so that when you tell Dragon to ‘go to sleep’, Voicecomputer automatically fires the ‘close numbers’ command ?

Thanks
Soti

Create a (global) advanced scripting command



Sub Main
HeardWord “close”,"intags"
Wait .20
GoToSleep
End Sub

<p ="Msonormal" style="margin-bottom:0cm;margin-bottom:.0001pt"><span style="color:black">hello Ron,</span></p>

<p ="Msonormal" style="margin-bottom:0cm;margin-bottom:.0001pt"><span style="color:black">I’ve created a Advanced Scripting Dragon custom command
called “Auto close intags” like you suggested.</span></p>

<p ="Msonormal" style="margin-bottom:0cm;margin-bottom:.0001pt"><span style="color:black"> </span></p>

<p ="Msonormal" style="margin-bottom:0cm;margin-bottom:.0001pt"><span style="color:black">Sub Main</span></p>

<p ="Msonormal" style="margin-bottom:0cm;margin-bottom:.0001pt"><span style="color:black">HeardWord "close","intags"</span></p>

<p ="Msonormal" style="margin-bottom:0cm;margin-bottom:.0001pt"><span style="color:black">Wait .20</span></p>

<p ="Msonormal" style="margin-bottom:0cm;margin-bottom:.0001pt"><span style="color:black">GoToSleep</span></p>

<p ="Msonormal" style="margin-bottom:0cm;margin-bottom:.0001pt"><span style="color:black">End Sub</span></p>

<p ="Msonormal" style="margin-bottom:0cm;margin-bottom:.0001pt"><span style="color:black"> </span></p>

<p ="Msonormal" style="margin-bottom:0cm;margin-bottom:.0001pt"><span style="color:black">However it’s not working.</span></p>

<p ="Msonormal" style="margin-bottom:0cm;margin-bottom:.0001pt"><span style="color:black">I’d like Dragon to wait until it hears the “go to sleep”
command, then I’d like Voicecomputer to run the “close numbers” routine. Am I
right in understanding that your routine is firstly listening for the words ”close”
or “intags” ? Then waiting for a little time, then firing the GoToSleep routine
?<span style="mso-spacerun:yes">  </span>If so, this is not functionality I
needed.<span style="mso-spacerun:yes">  </span></span></p>

<p ="Msonormal" style="margin-bottom:0cm;margin-bottom:.0001pt"><span style="color:black">Thanks</span></p>

<!--if gte mso 9>
 <w:Word>
  <w:View>Normal</w:View>
  <w:Zoom>0</w:Zoom>
  <w:TrackMoves/>
  <w:Trackatting/>
  <w:PunctuationKerning/>
  <w:ValidateAgainstSchemas/>
  <w:SaveIfInvalid>false</w:SaveIfInvalid>
  <w:IgnoreMixed>false</w:IgnoreMixed>
  <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
  <w:DonotPromoteQF/>
  <w:LidThemeOther>EN-GB</w:LidThemeOther>
  <w:LidThemeAsian>X-NONE</w:LidThemeAsian>
  <w:LidThemeComplex>X-NONE</w:LidThemeComplex>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
   <w:DontGrowAutofit/>
   <w:SplitPgBreakAndark/>
   <w:EnableKerning/>
   <w:DontFlipMirrorIndents/>
   <w:OverrideTableStyleHps/>
  </w:Compatibility>
  <m:mathPr>
   <m:mathFont m:val="Cambria Math"/>
   <m:brkBin m:val="before"/>
   <m:brkBinSub m:val="--"/>
   <m:smallFrac m:val="off"/>
   <m:dispDef/>
   <m:lMargin m:val="0"/>
   <m:rMargin m:val="0"/>
   <m:defJc m:val="centerGroup"/>
   <m:wrapIndent m:val="1440"/>
   <m:intLim m:val="subSup"/>
   <m:naryLim m:val="undOvr"/>
  </m:mathPr></w:Word>
<!--><!--if gte mso 9>
 <w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="false"    DefSemi="false" DefQat="false" DefPriority="99"    LatentStyleCount="371">
  <w:LsdException Locked="false" Qat="true" Name="Normal"/>
  <w:LsdException Locked="false" Priority="9" Qat="true" Name="ing 1"/>
  <w:LsdException Locked="false" Priority="9" Semi="true"     UnhideWhenUsed="true" Qat="true" Name="ing 2"/>
  <w:LsdException Locked="false" Priority="9" Semi="true"     UnhideWhenUsed="true" Qat="true" Name="ing 3"/>
  <w:LsdException Locked="false" Priority="9" Semi="true"     UnhideWhenUsed="true" Qat="true" Name="ing 4"/>
  <w:LsdException Locked="false" Priority="9" Semi="true"     UnhideWhenUsed="true" Qat="true" Name="ing 5"/>
  <w:LsdException Locked="false" Priority="9" Semi="true"     UnhideWhenUsed="true" Qat="true" Name="ing 6"/>
  <w:LsdException Locked="false" Priority="9" Semi="true"     UnhideWhenUsed="true" Qat="true" Name="ing 7"/>
  <w:LsdException Locked="false" Priority="9" Semi="true"     UnhideWhenUsed="true" Qat="true" Name="ing 8"/>
  <w:LsdException Locked="false" Priority="9" Semi="true"     UnhideWhenUsed="true" Qat="true" Name="ing 9"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="index 1"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="index 2"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="index 3"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="index 4"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="index 5"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="index 6"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="index 7"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="index 8"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="index 9"/>
  <w:LsdException Locked="false" Priority="39" Semi="true"     UnhideWhenUsed="true" Name="toc 1"/>
  <w:LsdException Locked="false" Priority="39" Semi="true"     UnhideWhenUsed="true" Name="toc 2"/>
  <w:LsdException Locked="false" Priority="39" Semi="true"     UnhideWhenUsed="true" Name="toc 3"/>
  <w:LsdException Locked="false" Priority="39" Semi="true"     UnhideWhenUsed="true" Name="toc 4"/>
  <w:LsdException Locked="false" Priority="39" Semi="true"     UnhideWhenUsed="true" Name="toc 5"/>
  <w:LsdException Locked="false" Priority="39" Semi="true"     UnhideWhenUsed="true" Name="toc 6"/>
  <w:LsdException Locked="false" Priority="39" Semi="true"     UnhideWhenUsed="true" Name="toc 7"/>
  <w:LsdException Locked="false" Priority="39" Semi="true"     UnhideWhenUsed="true" Name="toc 8"/>
  <w:LsdException Locked="false" Priority="39" Semi="true"     UnhideWhenUsed="true" Name="toc 9"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="Normal Indent"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="footnote text"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="annotation text"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="er"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="footer"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="index ing"/>
  <w:LsdException Locked="false" Priority="35" Semi="true"     UnhideWhenUsed="true" Qat="true" Name="caption"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="table of figures"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="envelope address"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="envelope return"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="footnote reference"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="annotation reference"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="line number"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="page number"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="endnote reference"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="endnote text"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="table of authorities"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="macro"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="toa ing"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="List"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="List Bullet"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="List Number"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="List 2"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="List 3"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="List 4"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="List 5"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="List Bullet 2"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="List Bullet 3"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="List Bullet 4"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="List Bullet 5"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="List Number 2"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="List Number 3"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="List Number 4"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="List Number 5"/>
  <w:LsdException Locked="false" Priority="10" Qat="true" Name="Title"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="Closing"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="Signature"/>
  <w:LsdException Locked="false" Priority="1" Semi="true"     UnhideWhenUsed="true" Name="Default Paragraph Font"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name=" Text"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name=" Text Indent"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="List Continue"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="List Continue 2"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="List Continue 3"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="List Continue 4"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="List Continue 5"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="Message er"/>
  <w:LsdException Locked="false" Priority="11" Qat="true" Name="Subtitle"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="Salutation"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="Date"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name=" Text First Indent"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name=" Text First Indent 2"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="Note ing"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name=" Text 2"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name=" Text 3"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name=" Text Indent 2"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name=" Text Indent 3"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="Block Text"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="Hyper"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="FollowedHyper"/>
  <w:LsdException Locked="false" Priority="22" Qat="true" Name="Strong"/>
  <w:LsdException Locked="false" Priority="20" Qat="true" Name="Emphasis"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name=" "/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="Plain Text"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="E-mail Signature"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name=" Top of "/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name=" Bottom of "/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="Normal Web"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name=" Acronym"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name=" Address"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name=" Cite"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name=" Code"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name=" Definition"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name=" Keyboard"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name=" Preatted"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name=" le"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name=" r"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name=" Variable"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="Normal Table"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="annotation subject"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="No List"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="Outline List 1"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="Outline List 2"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="Outline List 3"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="Table Simple 1"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="Table Simple 2"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="Table Simple 3"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="Table ic 1"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="Table ic 2"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="Table ic 3"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="Table ic 4"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="Table Colorful 1"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="Table Colorful 2"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="Table Colorful 3"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="Table Columns 1"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="Table Columns 2"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="Table Columns 3"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="Table Columns 4"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="Table Columns 5"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="Table Grid 1"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="Table Grid 2"/>
  <w:LsdException Locked="false" Semi="true" UnhideWhenUsed="true"     Name="Table Grid 3"/>
  <w:LsdException Locke

Soti,

<p>First, it would be impractical to add such a feature to VoiceComputer because not everyone wants to do what you want to do.</p>

<p>Ron may disagree with me, but VoiceComputer is provided as is out-of-the-box.</p>

<p>Second, you actually have two commands here:</p>

<font face="Arial"><p>1.  "close intags" or "close numbers", which is a VoiceComputer command.</p>

<p>2.  "go to sleep", which is part of the system.dvc microphone control.</p>

</font><p>Third, because of the above your script has a syntax error. You can't simply enter "GoToSleep" to an advanced script and expect it to work. If you step through it, you'll find that Dragon points to the syntax error. Try the following:</p></div><div></div>Sub Main<br> HeardWord "close","intags"<br> Wait .1<br> HeardWord "go to sleep"<br>End Sub
<edited><editID>Chucker</editID><editDate>2016-05-25 07:34:25</editDate></edited>