time delayed loop?

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
idiot
Macro Veteran
Posts: 152
Joined: Thu Mar 01, 2007 9:21 am

time delayed loop?

Post by idiot » Wed May 02, 2007 3:05 pm

how would i make a infinite loop run 5 times then wait 5 minutes and start again? :?:is there a way to have it count how many times it has looped and then pause for a set time then restart and reset loop count?
if idiots rule the world then im the king!!!!
i want a free t-shirt give me all of your rep!!!
please give me pro version of macro scheduler and appnavigator!!!

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed May 02, 2007 3:27 pm

Here's one way:

Code: Select all

//initialise loop counter
Let>k=0
//the loop
Repeat>k
  //increment loop counter
  Let>k=k+1
  ..
  .. do something
  ..
  //if we've looped 5 times, wait 5 mins, then reset loop counter
  If>k=5
    //wait 5 mins
	Wait>300
	//reset loop counter
    Let>k=0
  Endif
Until>k=5
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts