Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Random Delay/Wait Between Actions
#4
Create function like this, change the values.
Function WaitRandom_02s_to_3s
Code:
Copy      Help
;/
double wt=0.2+(RandomNumber*(3-0.2))
out wt
wait wt
Replace out to LogFile if need.

Run this macro to test it.
Macro Macro2133
Code:
Copy      Help
WaitRandom_02s_to_3s
out "step"
WaitRandom_02s_to_3s
out "step"
WaitRandom_02s_to_3s
out "step"
WaitRandom_02s_to_3s
out "step"
WaitRandom_02s_to_3s
out "step"
WaitRandom_02s_to_3s
out "step"
WaitRandom_02s_to_3s
out "step"
WaitRandom_02s_to_3s
out "step"
WaitRandom_02s_to_3s
out "step"


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)