<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>MSSpeech Forum : Getting command macro to repeat</title>
  <link>https://www.msspeech-forum.com/</link>
  <description><![CDATA[This is an XML content feed of; MSSpeech Forum : Macros and Macro Development : Getting command macro to repeat]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 16:05:10 +0000</pubDate>
  <lastBuildDate>Tue, 14 Jul 2009 18:42:54 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.02</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://www.msspeech-forum.com/RSS_post_feed.asp?TID=109</WebWizForums:feedURL>
  <image>
   <title><![CDATA[MSSpeech Forum]]></title>
   <url>https://www.msspeech-forum.com/forum_images/msspeech_forum.png</url>
   <link>https://www.msspeech-forum.com/</link>
  </image>
  <item>
   <title><![CDATA[Getting command macro to repeat :  Well Marty,It took me a bit...]]></title>
   <link>https://www.msspeech-forum.com/getting-command-macro-to-repeat_topic109_post568.html#568</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.msspeech-forum.com/member_profile.asp?PF=52">dtee</a><br /><strong>Subject:</strong> 109<br /><strong>Posted:</strong> 14/Jul/2009 at 6:42pm<br /><br />Well Marty,<br><br>It took me a bit longer to report back than I thought it would, but hopefully the wait was worth it <img src="https://www.msspeech-forum.com/smileys/smiley2.gif" border="0" alt="Wink" title="Wink" />. Adding the times = "&#091;some number&#093;" element to the sendKeys tag does the trick. Here it is:<br><br>&lt;speechMacros&gt;<br><br>&lt;!--This speech macro, when used in Word's Outline View, will demote the current paragraph one level, and will repeat up to 6 times for successive paragraphs. I find this macro extremely useful in setting up newsletters since I use Outline View for quick formatting. The spoken variable &#091;Reps&#093;, the &lt;sendKeys times="{&#091;Reps&#093;}"&gt;&nbsp; tag and the numbers-name tag are the key elements for getting the macro to repeat.<br><br>What can be a spoken: "Body fast one", "Body fast two", etc., up to "Body fast six".<br><br>This approach could be used to repeat any combination of keys inside the sendKeys tags.--&gt;<br><br>&nbsp; &lt;command&gt;<br>&nbsp;&nbsp;&nbsp; &lt;listenFor&gt;Body fast &#091;Reps&#093;&lt;/listenFor&gt;<br>&nbsp;&nbsp;&nbsp; &lt;sendKeys times="{&#091;Reps&#093;}"&gt;{TAB}{DOWN}{END}&lt;/sendKeys&gt;<br>&nbsp; &lt;/command&gt;<br>&nbsp; &lt;numbers name="Reps" start="1" stop="6"/&gt;<br>&lt;/speechMacros&gt;<br><br>Best regards and thanks to you and Brad,<br>Daniel<br><br>]]>
   </description>
   <pubDate>Tue, 14 Jul 2009 18:42:54 +0000</pubDate>
   <guid isPermaLink="true">https://www.msspeech-forum.com/getting-command-macro-to-repeat_topic109_post568.html#568</guid>
  </item> 
  <item>
   <title><![CDATA[Getting command macro to repeat : Hi Marty,Thanks for passing this...]]></title>
   <link>https://www.msspeech-forum.com/getting-command-macro-to-repeat_topic109_post562.html#562</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.msspeech-forum.com/member_profile.asp?PF=52">dtee</a><br /><strong>Subject:</strong> 109<br /><strong>Posted:</strong> 12/Jul/2009 at 5:44pm<br /><br />Hi Marty,<br><br>Thanks for passing this on. I'll try "times" tomorrow at work, see if it does the trick and report on the results here.<br><br>Daniel<br>]]>
   </description>
   <pubDate>Sun, 12 Jul 2009 17:44:46 +0000</pubDate>
   <guid isPermaLink="true">https://www.msspeech-forum.com/getting-command-macro-to-repeat_topic109_post562.html#562</guid>
  </item> 
  <item>
   <title><![CDATA[Getting command macro to repeat :   dtee wrote:Is there a simple...]]></title>
   <link>https://www.msspeech-forum.com/getting-command-macro-to-repeat_topic109_post560.html#560</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.msspeech-forum.com/member_profile.asp?PF=7">mmarkoe</a><br /><strong>Subject:</strong> 109<br /><strong>Posted:</strong> 12/Jul/2009 at 10:26am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by dtee" alt="Originally posted by dtee" style="vertical-align: text-bottom;" /> <strong>dtee wrote:</strong><br /><br />Is there a simple way to get a command macro to repeat X-number of times?</td></tr></table> <DIV>Brad is pretty much totally involved in a new project so I wrote him privately with your request. He responded with:<BR><FONT face="Arial, Helvetica, sans-serif" size=2>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;</FONT></DIV><DIV><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="mso-fareast-font-family: 'Times New Roman'"><FONT size=3><FONT face="Times New Roman">The SendKeys allows repeating with the times keyword:<?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="mso-fareast-font-family: 'Times New Roman'"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></SPAN><SPAN =apple-style-span><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'">&lt;sendKeys times="3"&gt;{UP}&lt;/sendKeys&gt;</P><DIV></SPAN></SPAN><SPAN style="mso-fareast-font-family: 'Times New Roman'"><FONT size=3><FONT face="Times New Roman"></FONT></FONT></SPAN>&nbsp;</DIV><DIV><SPAN style="mso-fareast-font-family: 'Times New Roman'"><FONT size=3><FONT face="Times New Roman">Or maybe something like this:<o:p></o:p></FONT></FONT></SPAN></DIV><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN =apple-style-span><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'">&lt;emulateRecognition&gt;Name of command macro to run&lt;/emulateRecognition&gt;</SPAN></SPAN><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'"><o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN =apple-style-span><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'">&lt;emulateRecognition&gt;Name of command macro to run&lt;/emulateRecognition&gt;</SPAN></SPAN><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'"><o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN =apple-style-span><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'">&lt;emulateRecognition&gt;Name of command macro to run&lt;/emulateRecognition&gt;</SPAN></SPAN><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'"><o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN =apple-style-span><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Helvetica','sans-serif'; mso-fareast-font-family: 'Times New Roman'">You may be able to fancy it up with a rule that listens for numbers too...</P><DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><FONT face=Arial size=2><FONT face=Helvetica></FONT>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;</FONT></SPAN></SPAN><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'"><o:p></o:p></SPAN></DIV><DIV>Hope this helps.</DIV><DIV></DIV></DIV><DIV>Marty</DIV>]]>
   </description>
   <pubDate>Sun, 12 Jul 2009 10:26:01 +0000</pubDate>
   <guid isPermaLink="true">https://www.msspeech-forum.com/getting-command-macro-to-repeat_topic109_post560.html#560</guid>
  </item> 
  <item>
   <title><![CDATA[Getting command macro to repeat : I bought WSRMacros: The User&amp;#039;s...]]></title>
   <link>https://www.msspeech-forum.com/getting-command-macro-to-repeat_topic109_post559.html#559</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.msspeech-forum.com/member_profile.asp?PF=52">dtee</a><br /><strong>Subject:</strong> 109<br /><strong>Posted:</strong> 11/Jul/2009 at 7:17pm<br /><br />I bought WSRMacros: The User's Guide several days ago. It gets top marks from me as it has already helped me consolidate my hodgepodge of speech macros. Thank you for all the good work, Brad!<br><br>There is one thing I was hoping to find in the guide but did not, maybe because I don't know enough about programming to spot it. Is there a simple way to get a command macro to repeat X-number of times? Here is the simplest macro of this kind. I use it many times a week in Word 2007 outline mode:<br><br>&lt;!--This macro presses the tab key to change the current line to body-text level, moves the cursor down a line and to the end of the line in case there are more lines than one line requiring changing to body text--&gt;<br>&lt;command&gt;<br>&nbsp;&nbsp;&nbsp; &lt;listenFor&gt;Body fast&lt;/listenFor&gt;<br>&nbsp;&nbsp;&nbsp; &lt;sendKeys&gt;{TAB}{DOWN}{END}&lt;/sendKeys&gt;<br>&nbsp; &lt;/command&gt;<br><br>Since I can see whether I need this to happen more than once, it would be nice to say, for example, Body fast 2 or 3 or whatever to get the whole job done with one utterance. Do I need to use CDATA and some visual basic code, or is there a still simpler way?<br><br>Thanks and regards,<br>Daniel<br><br>]]>
   </description>
   <pubDate>Sat, 11 Jul 2009 19:17:09 +0000</pubDate>
   <guid isPermaLink="true">https://www.msspeech-forum.com/getting-command-macro-to-repeat_topic109_post559.html#559</guid>
  </item> 
 </channel>
</rss>