<?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>
        Ok, try using &lt;br&gt;&lt;br&gt;x = GetVariable(&quot;HIGHEST_MIDDLE_X&quot;)&lt;br&gt;midx = GetVariable(&quot;IMAGE_WIDTH&quot;) / 2&lt;br&gt;leftThreshold = midx - 50&lt;br&gt;rightThreshold = midx + 50&lt;br&gt;&lt;br&gt;if x &amp;lt;= leftThreshold then&lt;br&gt;&amp;nbsp;&amp;nbsp;SetVariable &quot;key_to_send&quot;, &quot;R&quot;&lt;br&gt;else&lt;br&gt;&amp;nbsp;&amp;nbsp;if x &amp;gt;= rightThreshold then&lt;br&gt;&amp;nbsp;&amp;nbsp;SetVariable &quot;key_to_send&quot;, &quot;L&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;and then in the key_to_send variable in the Keyboard_Send module&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.roborealm.com/help/Keyboard_Send.php&quot; target=&quot;_blank&quot;&gt;http://www.roborealm.com/&lt;wbr&gt;help/&lt;wbr&gt;Keyboard_&lt;wbr&gt;Send.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;I.e. the variable created above has the value to use in the Keyboard_Send module. Think of the VBScript as creating parameters for other modules that are then specified using the GUI. So by changing the variable you change what keys are sent.&lt;br&gt;&lt;br&gt;Make sense?&lt;br&gt;&lt;br&gt;STeven.        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=3025</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=3025</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        Bump. Thanks.        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=3025</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=3025</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>vbscript</title>
        <description>
        Hello,&lt;br&gt;I&apos;m using this code:&lt;br&gt;&lt;br&gt;x = GetVariable(&quot;HIGHEST_MIDDLE_X&quot;)&lt;br&gt;midx = GetVariable(&quot;IMAGE_WIDTH&quot;) / 2&lt;br&gt;leftThreshold = midx - 50&lt;br&gt;rightThreshold = midx + 50&lt;br&gt;&lt;br&gt;if x &amp;lt;= leftThreshold then&lt;br&gt;&amp;nbsp;&amp;nbsp;SetVariable &quot;left_motor&quot;, 0&lt;br&gt;&amp;nbsp;&amp;nbsp;SetVariable &quot;right_motor&quot;, 255&lt;br&gt;else&lt;br&gt;&amp;nbsp;&amp;nbsp;if x &amp;gt;= rightThreshold then&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SetVariable &quot;left_motor&quot;, 255&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SetVariable &quot;right_motor&quot;, 0&lt;br&gt;&amp;nbsp;&amp;nbsp;else&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SetVariable &quot;left_motor&quot;, 255&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SetVariable &quot;right_motor&quot;, 255&lt;br&gt;&amp;nbsp;&amp;nbsp;end if&lt;br&gt;end if&lt;br&gt;&lt;br&gt;And i have a problem.&lt;br&gt;What i need:&lt;br&gt;if:&amp;nbsp;&amp;nbsp; SetVariable &quot;left_motor&quot;, 0&lt;br&gt;&amp;nbsp;&amp;nbsp;SetVariable &quot;right_motor&quot;, 255&lt;br&gt; i need to send key R&lt;br&gt;And if&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SetVariable &quot;left_motor&quot;, 255&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SetVariable &quot;right_motor&quot;, 0&lt;br&gt;i need to send key L&lt;br&gt;I have tried putting some vbscript sendkey commands what i found from google. Like:&lt;br&gt;objShell.SendKeys &quot;L&quot;&lt;br&gt;But these dont work.&lt;br&gt;I&apos;m not very good at coding these languages. Wish it would use php.        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=3025</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=3025</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
</channel>
</rss>
