mIRC Homepage
Posted By: pouncer loop through a dialog list box - 19/09/06 01:33 PM
how can i loop through my dialog list entries and write them to a text file?
Posted By: hixxy Re: loop through a dialog list box - 19/09/06 01:39 PM
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
}
Posted By: billythekid Re: loop through a dialog list box - 19/09/06 01:40 PM
var %i $did(id,N).lines
while %i > 0 {
write text.txt $did(id,N,%i)
dec %i
}
Posted By: billythekid Re: loop through a dialog list box - 19/09/06 01:40 PM
lol nm then.

btk
Posted By: pouncer Re: loop through a dialog list box - 19/09/06 01:45 PM
wow thanks.
© mIRC Discussion Forums