mIRC Homepage
Posted By: RockHound loadbuf - 18/03/04 01:39 AM
Was just using loadbuf command to read of a mp3.txt list and thought about it... would be nice to see a sort flag that would sort the list from a to z or 0 to 100.

loadbuf $lines(mp3.txt) -os $dname N mp3.txt

-s being the sort flag

If there is another way to do this please let me know.

Thanks
Posted By: Online Re: loadbuf - 18/03/04 01:52 AM
Click laugh
Posted By: RockHound Re: loadbuf - 18/03/04 02:01 AM
Yes online I do know about filter but thought it would be nice to wrap it up with one command rather then 2.
Posted By: Online Re: loadbuf - 18/03/04 02:06 AM
Why two? /filter is capable of reading from a file and sorting the outout in a dialog control. It turns to be very handy laugh

/filter -[color:blue]fotc 1 32 file.txt dialog list-id[/color]
Posted By: RockHound Re: loadbuf - 18/03/04 02:14 AM
Ok great thanks but just from what i have heard the loadbuf would be better to load a large amount of mp3s where filter could lock mirc up for a few second. Not sure if it is true though.
Posted By: qwerty Re: loadbuf - 18/03/04 02:30 AM
1) the <number of lines> parameter in /loadbuf is optional. If not specified, /loadbuf loads the entire file. So can save some processing time by not letting mirc calculate $lines().

2) You can do it in one /filter:
Code:
filter -foa mp3.txt $dname N
Posted By: qwerty Re: loadbuf - 18/03/04 02:32 AM
I was ridiculously late in hitting the "Submit" button in my previous post :tongue:

What you've heard is not true, /filter and /loadbuf are equally fast (unless you use the [alias] parameter in /filter, to do a custom sorting)
Posted By: RockHound Re: loadbuf - 18/03/04 03:19 AM
K thanks smile
© mIRC Discussion Forums