Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Sat Jan 21, 2017 6:17 am

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: While
Thanked: 0 time(s)  Unread post Posted: Thu Jun 11, 2015 3:17 pm 
Partner / License admin
Partner / License admin
User avatar



Joined: Sun Oct 10, 2010 5:16 pm
Posts: 1586
Location: USA
Been thanked: 339 time(s)
Has thanked: 25 time(s)
Contribution Points: 15594
Tells BEM to continually execute the begin/end portion of the macro that immediately follows this statement while the criteria is met. Your macro script will not continue past this point until the criteria is no longer met.

Usage:

Code:
 begin
     Macro.Start stopwatch("timer")
     while  Macro.Stopwatch counter is less than("timer", "5000")
          begin
               Window.Display message box("Stopwatch is less than 5 seconds", "yes")
          end
     Window.Display message box("The stopwatch is over 5 seconds and the macro has resumed", "yes")
 end


*Note: If you were to change the "Window.Display message box" to "no", you would get an (almost) infinite amount of message boxes stating that the stopwatch is less than 5 seconds...as many as your computer can generate within the specified time-frame. Therefore, it is suggested that you use care in scripting these types of commands in your macros and/or use triggers so that you can stop your macro.

_________________
----------------------------------------Syrifina---------------------------------------------------
PM me for licenses and/or licensing information: Click Here
[Be sure to include and update your profile with your BE ID]

Forum Rules
Reminder of rules regarding Contribution points
Getting started in 1, 2, 3
Virtual Drivers; Manual Installers


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group