<?xml version="1.0" encoding="ISO-8859-1" ?><rss version="2.0">
<channel>
    <title>RoboRealm Forum</title>
    <link>http://www.RoboRealm.com/</link>
    <description>The newest forum threads.</description>
    <lastBuildDate>Tue, 30 Nov 1999 00:11:00 EST</lastBuildDate>
    <language>en-us</language>
    <copyright>Copyright: (C) RoboRealm, http://www.RoboRealm.com/</copyright>
    <docs>http://www.RoboRealm.com/</docs>

    <item>
        <title>No Title</title>
        <description>
        Answered here&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.roborealm.com/forum/index.php?thread_id=4017#&quot; target=&quot;_blank&quot;&gt;http://www.roborealm.com/&lt;wbr&gt;forum/&lt;wbr&gt;index.php?thread_&lt;wbr&gt;id=4017#&lt;/a&gt;&lt;br&gt;&lt;br&gt;STeven.        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=3997</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=3997</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        I copied the code twice above, it should just be:&lt;br&gt;&lt;br&gt;cogx = GetVariable(&quot;COG_X&quot;) &lt;br&gt;leftThreshold = 100 &lt;br&gt;rightThreshold = 200 &lt;br&gt;&lt;br&gt;SetVariable &quot;test&quot;, cogx &lt;br&gt;&lt;br&gt;if test &amp;lt;= leftThreshold then &lt;br&gt;&amp;nbsp;&amp;nbsp;SetVariable &quot;key_to_send&quot;, &quot;{LEFT}&quot; &lt;br&gt;else &lt;br&gt;&amp;nbsp;&amp;nbsp;if test &amp;gt;= rightThreshold then &lt;br&gt;&amp;nbsp;&amp;nbsp;SetVariable &quot;key_to_send&quot;, &quot;{RIGHT}&quot; &lt;br&gt;&amp;nbsp;&amp;nbsp;else &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SetVariable &quot;key_to_send&quot;, &quot;&quot; &lt;br&gt;&amp;nbsp;&amp;nbsp;end if &lt;br&gt;end if         </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=3997</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=3997</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>VBScript to Keyboard Send</title>
        <description>
        I am trying to make a usb missile launcher follow a red blob and then shoot it when it centers on it. (see attached) I am using the Keyboard_Send module to send a left or a right keyboard arrow to the missile launcher program.&lt;br&gt;&lt;br&gt;The only part that does not work is reassigning a different value to the &quot;key_ to_send&quot; variable each time I move the blob.&amp;nbsp;&amp;nbsp; For instance when I move the blob to the left and test &amp;lt;=100, &quot;key_to_send&quot; is still shows up as equal to {RIGHT} (under the modified Variable table in VBScript module) instead of {LEFT}. So the missile launcher continues to turn right.&lt;br&gt;&lt;br&gt;Let me know if you have any advice.&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Here is the VBScript I am using( I have attached the .robo file I am using):&lt;br&gt;&lt;br&gt;&lt;br&gt;cogx = GetVariable(&quot;COG_X&quot;) &lt;br&gt;leftThreshold = 100 &lt;br&gt;rightThreshold = 200 &lt;br&gt;&lt;br&gt;SetVariable &quot;test&quot;, cogx&lt;br&gt;&lt;br&gt;if test &amp;lt;= leftThreshold then &lt;br&gt;&amp;nbsp;&amp;nbsp;SetVariable &quot;key_to_send&quot;, &quot;{LEFT}&quot; &lt;br&gt;else &lt;br&gt;&amp;nbsp;&amp;nbsp;if test &amp;gt;= rightThreshold then &lt;br&gt;&amp;nbsp;&amp;nbsp;SetVariable &quot;key_to_send&quot;, &quot;{RIGHT}&quot; &lt;br&gt;&amp;nbsp;&amp;nbsp;else &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SetVariable &quot;key_to_send&quot;, &quot;&quot; &lt;br&gt;&amp;nbsp;&amp;nbsp;end if &lt;br&gt;end if &lt;br&gt;&lt;br&gt;cogx = GetVariable(&quot;COG_X&quot;) &lt;br&gt;leftThreshold = 100 &lt;br&gt;rightThreshold = 200 &lt;br&gt;&lt;br&gt;SetVariable &quot;test&quot;, cogx&lt;br&gt;&lt;br&gt;if test &amp;lt;= leftThreshold then &lt;br&gt;&amp;nbsp;&amp;nbsp;SetVariable &quot;key_to_send&quot;, &quot;{LEFT}&quot; &lt;br&gt;else &lt;br&gt;&amp;nbsp;&amp;nbsp;if test &amp;gt;= rightThreshold then &lt;br&gt;&amp;nbsp;&amp;nbsp;SetVariable &quot;key_to_send&quot;, &quot;{RIGHT}&quot; &lt;br&gt;&amp;nbsp;&amp;nbsp;else &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SetVariable &quot;key_to_send&quot;, &quot;&quot; &lt;br&gt;&amp;nbsp;&amp;nbsp;end if &lt;br&gt;end if &lt;p&gt;&lt;br&gt;&lt;a target=_blank href=&quot;http://www.roborealm.com/uploads/22259_1.jpg&quot;&gt;&lt;img border=1 src=&quot;http://www.roborealm.com/uploads/22259_thumb_1.jpg&quot;&gt;&lt;/a&gt;&amp;nbsp;&lt;br&gt;        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=3997</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=3997</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
</channel>
</rss>
