Jump to content
Macro Express Forums

Macros With A Variable Pause & Repeat?


Voodoo
 Share

Recommended Posts

How can you make a macro that will type some data then pause say 60 seconds then repeat text then pause 90 seconds etc.... but than have a min and max time and randomly picks a time. This way it doesn't look like a macro is typing the data.

 

:unsure:

 

Thanks

Voodoo

Link to comment
Share on other sites

Hi Voodoo,

 

Let's say you wanted to wait between 40 and 90 seconds before you retype your data. Since 90 - 40 = 50, this means your delay will have a range of 50 seconds. ME's random number function will give you a number between 0 and whatever you specify, so you can use it to easily get a number between 0 and 50. Add 40 (your minimum delay) to that number and you have just what you need! Here's the way your code might look:

 

Repeat Until %N1% <> %N1%
 // ... insert commands to type your data ...
 Variable Set Integer %N1% with a Random Number  <-- specify 50 as your upper limit
 Variable Modify Integer: %N1% = %N1% + 40
 Delay %N1% Seconds
Repeat End

 

Cheers,

Jim

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...