mIRC Home    About    Download    Register    News    Help

Print Thread
#154979 02/08/06 10:21 PM
Joined: May 2006
Posts: 15
M
mrmercy Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: May 2006
Posts: 15
hi,
if we have this

alias echo_ {
var %x = 1,%s = $findfile($mircdir,*.txt,0)
while (%s >= %x) {
echo -a $nopatch($findfile($mircdir,*.txt,%x))
inc %x
}
}

will echo all $findfile($mircdir,*.txt,%x) in same time
i want to something which echo first line after 2sec the second line...so on

an example
1.txt
after 2second
2.txt
after 2second
echo the third ...

thanks for help

#154980 03/08/06 12:09 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Code:
 alias echo_ {
var %x = 1, %s = $findfile($mircdir,*.txt,0)
while (%s >= %x) {
.timer 1 $calc(%x * 2) echo -a $nopath($findfile($mircdir,*.txt,%x))
inc %x
}
}
  

While in your original, you had $nopatch, I think this was a typo, and should've been $nopath. If nopatch is another alias, then please replace $nopath with $nopatch in the above code.

P.S.: Please use the Code Tags when posting code, they can make things easier, especially if we (the helpers) are wanting/needing to copy code that you've posted.

#154981 03/08/06 12:21 AM
Joined: May 2006
Posts: 15
M
mrmercy Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: May 2006
Posts: 15
thanks, bro .... thanks for help


Link Copied to Clipboard