<?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>
        cogx = GetVariable(&quot;COG_X&quot;) &lt;br&gt; xcor = 350&lt;br&gt; ycor = 300&lt;br&gt;test=cogx&lt;br&gt;&lt;br&gt;if test &amp;lt;= ycor&amp;nbsp;&amp;nbsp;then &lt;br&gt;&amp;nbsp;&amp;nbsp;SetVariable &quot;key_to_send&quot;, &quot;{RIGHT}&quot; &lt;br&gt;else &lt;br&gt;&amp;nbsp;&amp;nbsp;if test &amp;gt;= xcor then &lt;br&gt;&amp;nbsp;&amp;nbsp;SetVariable &quot;key_to_send&quot;, &quot;{LEFT}&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;That&apos;s how i did it and it work . :d        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=4017</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=4017</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        Ben,&lt;br&gt;&lt;br&gt;Does just typing a space not work? Seems to send it to notepad just fine.&lt;br&gt;&lt;br&gt;What leads you to believe that just typing a space does not work?&lt;br&gt;&lt;br&gt;STeven.        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=4017</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=4017</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        Do you know how to send &quot;SPACEBAR&quot; through the keyboard send program?&lt;br&gt;&lt;br&gt;&lt;br&gt;Hitting space bar is how I shoot the nerf gun.&lt;br&gt;&lt;br&gt;&lt;br&gt;Ben &lt;br&gt;&lt;a href=&quot;http://www.focus4tech.com&quot; target=&quot;_blank&quot;&gt;www.focus4tech.com&lt;/a&gt;        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=4017</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=4017</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        That&apos;s great! Thanks for the help.        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=4017</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=4017</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        Your &quot;test&quot; VBScript variable is not actually set ... you save it using a SetVariable but you should instead use cogx in the actual VBScript comparisons. Using the Subroutine SetVariable does NOT automatically create a variable in VBScript with that same value. So replace test with cogx.&lt;br&gt;&lt;br&gt;Attached is your corrected robofile.&lt;br&gt;&lt;br&gt;Also, we have a module for the USB missile launch which may be more reliable than the keyboard_send ...&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.roborealm.com/help/DC_Missile.php&quot; target=&quot;_blank&quot;&gt;http://www.roborealm.com/&lt;wbr&gt;help/&lt;wbr&gt;DC_&lt;wbr&gt;Missile.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;Thanks for the pic!&lt;br&gt;&lt;br&gt;STeven.        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=4017</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=4017</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;p&gt;&lt;a target=_blank href=&quot;http://www.roborealm.com/uploads/22290_1.jpg&quot;&gt;&lt;img border=1 src=&quot;http://www.roborealm.com/uploads/22290_thumb_1.jpg&quot;&gt;&lt;/a&gt;&amp;nbsp;&lt;br&gt;        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=4017</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=4017</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
</channel>
</rss>
