Problem with "for" and "wait"

Posted by Dude on Sun 16 Aug 2015 07:42 AM — 3 posts, 15,118 views.

Germany #0
Hi,

i tryd something like this:

<aliases>
<alias
match="tester *"
enabled="y"
send_to="12"
sequence="100"
>
<send>require "wait"
for i=%1,1,-1 do

Send ("do something and wait 8 seconds")
wait.time (8)

end</send>
</alias>
</aliases>

So i start die alias with maybe "tester 4" so it will "do something" 4 times. But it wont work. Any Idea how i get this to work?
Australia Forum Administrator #1
See: http://www.gammon.com.au/forum/?id=4957

You don't seem to be calling wait.make
Germany #2
Ah, right, thank you.