<?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 : CDATA problem</title>
  <link>https://www.msspeech-forum.com/</link>
  <description><![CDATA[This is an XML content feed of; MSSpeech Forum : Macros and Macro Development : CDATA problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 04:06:02 +0000</pubDate>
  <lastBuildDate>Sun, 28 Dec 2008 18:54:58 +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=46</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[CDATA problem :    cactustweeter wrote:Thanks...]]></title>
   <link>https://www.msspeech-forum.com/cdata-problem_topic46_post229.html#229</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.msspeech-forum.com/member_profile.asp?PF=39">BradT</a><br /><strong>Subject:</strong> 46<br /><strong>Posted:</strong> 28/Dec/2008 at 6:54pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by cactustweeter" alt="Originally posted by cactustweeter" style="vertical-align: text-bottom;" /> <strong>cactustweeter wrote:</strong><br /><br />Thanks Brad.&nbsp; Your script showed me this was what I was missing:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' set named state so we can access it outside VBScript<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NamedStates.SetNamedStateValue "strWindowSide", strWindowSide<br><br></td></tr></table><br><br>Great.&nbsp; I also uploaded the macro here:<br><br>http://www.msspeech-forum.com/uploads/public/25/ResizeWindow.txt<br><br>]]>
   </description>
   <pubDate>Sun, 28 Dec 2008 18:54:58 +0000</pubDate>
   <guid isPermaLink="true">https://www.msspeech-forum.com/cdata-problem_topic46_post229.html#229</guid>
  </item> 
  <item>
   <title><![CDATA[CDATA problem : Thanks Brad. Your script showed...]]></title>
   <link>https://www.msspeech-forum.com/cdata-problem_topic46_post228.html#228</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.msspeech-forum.com/member_profile.asp?PF=65">cactustweeter</a><br /><strong>Subject:</strong> 46<br /><strong>Posted:</strong> 28/Dec/2008 at 5:44pm<br /><br />Thanks Brad.&nbsp; Your script showed me this was what I was missing:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' set named state so we can access it outside VBScript<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NamedStates.SetNamedStateValue "strWindowSide", strWindowSide<br><br>]]>
   </description>
   <pubDate>Sun, 28 Dec 2008 17:44:58 +0000</pubDate>
   <guid isPermaLink="true">https://www.msspeech-forum.com/cdata-problem_topic46_post228.html#228</guid>
  </item> 
  <item>
   <title><![CDATA[CDATA problem : Hi cactustweeter,Glad the User&amp;#039;s...]]></title>
   <link>https://www.msspeech-forum.com/cdata-problem_topic46_post227.html#227</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.msspeech-forum.com/member_profile.asp?PF=39">BradT</a><br /><strong>Subject:</strong> 46<br /><strong>Posted:</strong> 28/Dec/2008 at 4:58pm<br /><br />Hi cactustweeter,<br><br>Glad the User's Guide has helped you with WSR Macros...<br><br>Here's the code I use for resizing windows, maybe it will help or at least give you some ideas.&nbsp; Let me know if you have any questions...<br><br>Brad<br><br>'*********<br>&lt;?xml version="1.0" encoding="utf-8" ?&gt;<br><br>&lt;!-- <br>ResizeWindow - allows resizing of active window (non-maximized) by using ALT-SPACE-S<br><br>Syntax: "resize window &#091;SideDirection&#093; &#091;Amount&#093;"<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#091;SideDirection&#093; = top up || top down || bottom up || bottom down || left in || left out || right in || right out<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#091;Amount&#093; = 1 to 100<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "resize window much smaller"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "resize window smaller"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "resize window larger"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "resize window much larger"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>Created: 20 August 2008<br>Author:&nbsp; BradT<br>--&gt;<br><br>&lt;speechMacros&gt;<br>&nbsp;&nbsp; <br>&nbsp; &lt;command&gt;<br>&nbsp;&nbsp;&nbsp; &lt;listenFor&gt;resize window &#091;SideDirection&#093; &#091;Amount&#093;&lt;/listenFor&gt;<br><br>&nbsp;&nbsp;&nbsp; &lt;script language='VBScript'&gt;<br>&nbsp;&nbsp;&nbsp; &lt;!&#091;CDATA&#091;<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; strSideDirection = "{&#091;SideDirection&#093;}"<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; Select Case strSideDirection<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case "top up"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strSide = "{UP}"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strDirection = "{UP}"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case "top down"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strSide = "{UP}"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strDirection = "{DOWN}"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case "bottom up"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strSide = "{DOWN}"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strDirection = "{UP}"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case "bottom down"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strSide = "{DOWN}"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strDirection = "{DOWN}"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case "left in"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strSide = "{LEFT}"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strDirection = "{RIGHT}"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case "left out"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strSide = "{LEFT}"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strDirection = "{LEFT}"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case "right in"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strSide = "{RIGHT}"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strDirection = "{LEFT}"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case "right out"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strSide = "{RIGHT}"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strDirection = "{RIGHT}"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' should not happen with SideDirection rule<br>&nbsp;&nbsp;&nbsp;&nbsp; End Select<br>&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp; '<br>&nbsp;&nbsp;&nbsp;&nbsp; ' set named state so we can access it outside VBScript<br>&nbsp;&nbsp;&nbsp;&nbsp; '<br>&nbsp;&nbsp;&nbsp;&nbsp; NamedStates.SetNamedStateValue "strSide", strSide<br>&nbsp;&nbsp;&nbsp;&nbsp; NamedStates.SetNamedStateValue "strDirection", strDirection<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &#093;&#093;&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/script&gt;<br><br>&nbsp;&nbsp;&nbsp; &lt;sendKeys&gt;{{ALT}}{U+0020}s&lt;/sendKeys&gt;<br>&nbsp;&nbsp;&nbsp; &lt;waitFor seconds='.250'/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;sendKeys&gt;{&#091;strSide&#093;}&lt;/sendKeys&gt;<br>&nbsp;&nbsp;&nbsp; &lt;!-- note: Not all of the 'times' amount of keystrokes are being received even with a 250 wait --&gt;<br>&nbsp;&nbsp;&nbsp; &lt;sendKeys times='{&#091;Amount&#093;}'&gt;{&#091;strDirection&#093;}{250 WAIT}&lt;/sendKeys&gt;<br>&nbsp;&nbsp;&nbsp; &lt;sendKeys&gt;{ENTER}&lt;/sendKeys&gt;<br>&nbsp;&nbsp;&nbsp; <br>&nbsp; &lt;/command&gt;<br><br>&nbsp; &lt;command&gt;<br>&nbsp;&nbsp;&nbsp; &lt;listenFor&gt;resize window smaller&lt;/listenFor&gt;<br>&nbsp;&nbsp;&nbsp; &lt;emulateRecognition&gt;resize window bottom up 10&lt;/emulateRecognition&gt;<br>&nbsp;&nbsp;&nbsp; &lt;waitFor seconds=".50"/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;emulateRecognition&gt;resize window right in 10&lt;/emulateRecognition&gt;<br>&nbsp; &lt;/command&gt;<br><br>&nbsp; &lt;command&gt;<br>&nbsp;&nbsp;&nbsp; &lt;listenFor&gt;resize window +much +smaller&lt;/listenFor&gt;<br>&nbsp;&nbsp;&nbsp; &lt;emulateRecognition&gt;resize window bottom up 50&lt;/emulateRecognition&gt;<br>&nbsp;&nbsp;&nbsp; &lt;waitFor seconds=".50"/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;emulateRecognition&gt;resize window right in 50&lt;/emulateRecognition&gt;<br>&nbsp; &lt;/command&gt;<br><br>&nbsp; &lt;command&gt;<br>&nbsp;&nbsp;&nbsp; &lt;listenFor&gt;resize window larger&lt;/listenFor&gt;<br>&nbsp;&nbsp;&nbsp; &lt;emulateRecognition&gt;resize window bottom down 10&lt;/emulateRecognition&gt;<br>&nbsp;&nbsp;&nbsp; &lt;waitFor seconds=".50"/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;emulateRecognition&gt;resize window right out 10&lt;/emulateRecognition&gt;<br>&nbsp; &lt;/command&gt;<br><br>&nbsp; &lt;command&gt;<br>&nbsp;&nbsp;&nbsp; &lt;listenFor&gt;resize window +much +larger&lt;/listenFor&gt;<br>&nbsp;&nbsp;&nbsp; &lt;emulateRecognition&gt;resize window bottom down 50&lt;/emulateRecognition&gt;<br>&nbsp;&nbsp;&nbsp; &lt;waitFor seconds=".50"/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;emulateRecognition&gt;resize window right out 50&lt;/emulateRecognition&gt;<br>&nbsp; &lt;/command&gt;<br>&nbsp; <br>&nbsp; &lt;!-- no commands below here --&gt;<br>&nbsp; <br>&nbsp; &lt;rule name="SideDirection"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;list&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p&gt;top up&lt;/p&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p&gt;top down&lt;/p&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p&gt;bottom up&lt;/p&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p&gt;bottom down&lt;/p&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p&gt;left in&lt;/p&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p&gt;left out&lt;/p&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p&gt;right in&lt;/p&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p&gt;right out&lt;/p&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/list&gt;<br>&nbsp; &lt;/rule&gt;<br>&nbsp; <br>&nbsp; &lt;numbers name="Amount" start="1" stop="100"/&gt;<br>&nbsp; <br>&lt;/speechMacros&gt;<br><br>]]>
   </description>
   <pubDate>Sun, 28 Dec 2008 16:58:55 +0000</pubDate>
   <guid isPermaLink="true">https://www.msspeech-forum.com/cdata-problem_topic46_post227.html#227</guid>
  </item> 
  <item>
   <title><![CDATA[CDATA problem : I posted the wrong revision of...]]></title>
   <link>https://www.msspeech-forum.com/cdata-problem_topic46_post226.html#226</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.msspeech-forum.com/member_profile.asp?PF=65">cactustweeter</a><br /><strong>Subject:</strong> 46<br /><strong>Posted:</strong> 28/Dec/2008 at 3:19pm<br /><br />I posted the wrong revision of the script.&nbsp; What I posted earlier definitely won't work.&nbsp; However, what's below I believe should work.&nbsp; Sorry for the confusion.<br><br>&lt;speechMacros&gt;<br>&nbsp;&nbsp;&nbsp; &lt;command&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;listenFor&gt;shrink window &#091;WindowSide&#093; &#091;1to500&#093;&lt;/listenFor&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;script language="VBScript"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!&#091;CDATA&#091;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim strWindowSide<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if "{&#091;WindowSide&#093;}" = "top" then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strWindowSide = "{up}"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; elseif "{&#091;WindowSide&#093;}" = "bottom" then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strWindowSide = "{down}"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; elseif "{&#091;WindowSide&#093;}" = "left" then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strWindowSide = "{left}"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; elseif "{&#091;WindowSide&#093;}" = "right" then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strWindowSide = "{right}"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strWindowSide = "{esc}"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end if<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#093;&#093;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/script&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- set the window for sizing --&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;sendKeys&gt;{{alt}}{u+0020}s&lt;/sendKeys&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;waitFor seconds=".25"/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- set the window side for shrinking --&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;sendKeys times="1"&gt;{&#091;strWindowSide&#093;}{5 wait}&lt;/sendKeys&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- for my computer I had to add the 5 ms delay otherwise the keys were missed --&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;sendKeys times="{&#091;1to500&#093;}"&gt;{&#091;WindowSide.Keys&#093;}{5 wait}&lt;/sendKeys&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;sendKeys&gt;{enter}&lt;/sendKeys&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/command&gt;<br><br>&nbsp;&nbsp;&nbsp; &lt;listenForList name="WindowSide" propname="Keys"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;item propval="{down}"&gt;top&lt;/item&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;item propval="{up}"&gt;bottom&lt;/item&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;item propval="{right}"&gt;left&lt;/item&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;item propval="{left}"&gt;right&lt;/item&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/listenForList&gt;<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &lt;numbers name="1to500" start="1" stop="500"/&gt;<br>&lt;/speechMacros&gt;<br><br>]]>
   </description>
   <pubDate>Sun, 28 Dec 2008 15:19:06 +0000</pubDate>
   <guid isPermaLink="true">https://www.msspeech-forum.com/cdata-problem_topic46_post226.html#226</guid>
  </item> 
  <item>
   <title><![CDATA[CDATA problem : Brad,I am a veteran DNS user who...]]></title>
   <link>https://www.msspeech-forum.com/cdata-problem_topic46_post225.html#225</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.msspeech-forum.com/member_profile.asp?PF=65">cactustweeter</a><br /><strong>Subject:</strong> 46<br /><strong>Posted:</strong> 27/Dec/2008 at 8:15pm<br /><br />Brad,<br><br>I am a veteran DNS user who is trying to get up to speed with WSR.&nbsp; I'm trying to create the macros I use in DNS that are not available by default in WSR.&nbsp; I bought your book to help me get up to speed on macro programming.&nbsp; I found it a good read.&nbsp; Well worth the money.<br><br>I'm currently working on my window manipulation macros.&nbsp; Stuff like move/expand/shrink window &lt;direction&gt; &lt;1to500&gt;.&nbsp; I have the move/expand window macros finished.&nbsp; I'm having trouble with the shrink window macro.&nbsp; Basically I'm trying to use a script block to determine which side of the window to set so I can shrink it.&nbsp; I've tried several things and the following code is my latest revision.&nbsp; There are no compile errors.&nbsp; However, it just doesn't seem to work.&nbsp; Have any suggestions?<br><br>&lt;speechMacros&gt;<br>&nbsp;&nbsp;&nbsp; &lt;command&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;listenFor&gt;shrink window &#091;Direction&#093; &#091;1to500&#093;&lt;/listenFor&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;script language='VBScript'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!&#091;CDATA&#091;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim strDirection<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if "{&#091;Direction&#093;}" = "up" then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strDirection = "{down}"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; elseif "{&#091;Direction&#093;}" = "down" then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strDirection = "{up}"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; elseif "{&#091;Direction&#093;}" = "left" then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strDirection = "{right}"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; elseif "{&#091;Direction&#093;}" = "right" then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strDirection = "{left}"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strDirection = "{esc}"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end if<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#093;&#093;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/script&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- set the window for sizing --&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;sendKeys&gt;{{alt}}{u+0020}s&lt;/sendKeys&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;waitFor seconds=".25"/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- set the window side for shrinking --&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;sendKeys times="1"&gt;{&#091;strDirection&#093;}{5 wait}&lt;/sendKeys&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- for my computer I had to add the 5 ms delay otherwise the keys were missed --&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;sendKeys times="{&#091;1to500&#093;}"&gt;{&#091;Direction.Keys&#093;}{5 wait}&lt;/sendKeys&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;sendKeys&gt;{enter}&lt;/sendKeys&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/command&gt;<br><br>&nbsp;&nbsp;&nbsp; &lt;listenForList name="Direction" propname="Keys"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;item propval="{up}"&gt;up&lt;/item&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;item propval="{down}"&gt;down&lt;/item&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;item propval="{left}"&gt;left&lt;/item&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;item propval="{right}"&gt;right&lt;/item&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/listenForList&gt;<br>&lt;/speechMacros&gt;<br><br>Thanks...<br>]]>
   </description>
   <pubDate>Sat, 27 Dec 2008 20:15:31 +0000</pubDate>
   <guid isPermaLink="true">https://www.msspeech-forum.com/cdata-problem_topic46_post225.html#225</guid>
  </item> 
 </channel>
</rss>