<?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>
        It will not change ... that&apos;s the point cause you want to compare it to the current time specified by Timer() &lt;br&gt;&lt;br&gt;state_timer is a snapshot (a bookmark) in time that you can compare the current time too.&lt;br&gt;&lt;br&gt;if GetVariable(&quot;state_timer&quot;) = &quot;0&quot; then&lt;br&gt;&lt;br&gt;is used to initialize the state_timer variable.&lt;br&gt;&lt;br&gt;Be sure to have a look through other posts in the forum for these kinds of examples ... this is a common topic that comes up.&lt;br&gt;&lt;br&gt;Note that the provided code is a skeleton on which to continue your experiments ... it will not do anything as is but is merely and example on how to create state based transitions when you are inside a loop.&lt;br&gt;&lt;br&gt;STeven.        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=2847</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=2847</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        Thank you STeven,&lt;br&gt;&lt;br&gt;I just tried it.&lt;br&gt;but the state_timer showed 72255.98 and it&apos;s never changed.&lt;br&gt;What does it mean by &quot;if GetVariable(&quot;state_timer&quot;) = &quot;0&quot; then &lt;br&gt;&quot;?&lt;br&gt;&lt;br&gt;Best regards,&lt;br&gt;&lt;br&gt;Ay        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=2847</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=2847</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        Ay,&lt;br&gt;&lt;br&gt;You can use the VBScript Timer function to check when you want to transition into a new &quot;state&quot;. Something along the lines of &lt;br&gt;&lt;br&gt;if GetVariable(&quot;state_timer&quot;) = &quot;0&quot; then&lt;br&gt;&amp;nbsp;&amp;nbsp;SetVariable &quot;state_timer&quot;, Timer()&lt;br&gt;end if&lt;br&gt;&lt;br&gt;state = GetVariable(&quot;state&quot;)&lt;br&gt;&lt;br&gt;select case state&lt;br&gt;&amp;nbsp;&amp;nbsp;case 0:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (Timer() - GetVariable(&quot;state_timer&quot;)) &amp;gt; 10 then&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SetVariable &quot;state&quot;, 1&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&apos; perhaps set other things while waiting for the next state&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;end if&lt;br&gt;&amp;nbsp;&amp;nbsp;case 1:&lt;br&gt;&amp;nbsp;&amp;nbsp;&apos; next state&lt;br&gt;end select&lt;br&gt;&lt;br&gt;Since you are already in a &quot;loop&quot; in the VBscript you just need to know when to transition onto the next state based on the time. This state dictates what you do in each execution.&lt;br&gt;&lt;br&gt;STeven.        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=2847</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=2847</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        Thank you for your suggestion.&lt;br&gt;&lt;br&gt;I have still a few questions about the use of the vbscript and the timer.&lt;br&gt;Especially, the vbscript is already in the loop, but if I use the timer, does the vbscript stop when the timer reaches at the time I set up?&lt;br&gt;&lt;br&gt;What I want to do is repeat the loop just forever.&lt;br&gt;In the vbscript, there can be some if statements. &lt;br&gt;When the certain time (millisecond or second) comes, the if statement finishes, and then I want to perform another if statement.&lt;br&gt;When the all of performances in the loop are finished, again I want to start the loop and repeat them.&lt;br&gt;&lt;br&gt;So, I used the image count..&lt;br&gt;However, I found the image count shows the increment is not really constant.&lt;br&gt;&lt;br&gt;Best regards,&lt;br&gt;&lt;br&gt;Ay        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=2847</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=2847</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        Hi Ay,&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;Sure the two ways I can think of is use vbscript see &lt;a href=&quot;http://www.roborealm.com/forum/index.php?thread_id=747&quot; target=&quot;_blank&quot;&gt;http://www.roborealm.com/&lt;wbr&gt;forum/&lt;wbr&gt;index.php?thread_&lt;wbr&gt;id=747&lt;/a&gt; or use the timer module (Other -&amp;gt; Timer) and use milliseconds        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=2847</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=2847</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>Image Count</title>
        <description>
        Hi,&lt;br&gt;&lt;br&gt;I&apos;d like to use the variable, Image Count, to measure time.&lt;br&gt;Is the Image Count counting per 1/30 second?? &lt;br&gt;Or, is there any more-reasonable methods to do that?&lt;br&gt;&lt;br&gt;Thank you in advance,&lt;br&gt;Best regards,&lt;br&gt;&lt;br&gt;Ay        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=2847</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=2847</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
</channel>
</rss>
