mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: Oct 2005
Posts: 827
how can i loop through my dialog list entries and write them to a text file?

Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
No need.

Code:
savebuf -o <dialog> <id> "<file>"


Or:

Code:
filter -if <dialog> <id> "<file>"


If you want to loop anyway:

Code:
var %i = 1
while ($did(<id>,%i) != $null) {
  write "<file>" $ifmatch
  inc %i
}


If it's not inside an on dialog event, you'll need to supply the dialog name too:

Code:
var %i = 1
while ($did([color:red]<dialog>,[/color]<id>,%i) != $null) {
  write "<file>" $ifmatch
  inc %i
}

Joined: Mar 2003
Posts: 612
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Mar 2003
Posts: 612
var %i $did(id,N).lines
while %i > 0 {
write text.txt $did(id,N,%i)
dec %i
}


billythekid
Joined: Mar 2003
Posts: 612
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Mar 2003
Posts: 612
lol nm then.

btk


billythekid
Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: Oct 2005
Posts: 827
wow thanks.


Link Copied to Clipboard