mIRC Home    About    Download    Register    News    Help

Print Thread
#75615 18/03/04 01:39 AM
Joined: Oct 2003
Posts: 80
R
Babel fish
OP Offline
Babel fish
R
Joined: Oct 2003
Posts: 80
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


RockHound
#75616 18/03/04 01:52 AM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922

#75617 18/03/04 02:01 AM
Joined: Oct 2003
Posts: 80
R
Babel fish
OP Offline
Babel fish
R
Joined: Oct 2003
Posts: 80
Yes online I do know about filter but thought it would be nice to wrap it up with one command rather then 2.


RockHound
#75618 18/03/04 02:06 AM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
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]

#75619 18/03/04 02:14 AM
Joined: Oct 2003
Posts: 80
R
Babel fish
OP Offline
Babel fish
R
Joined: Oct 2003
Posts: 80
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.


RockHound
#75620 18/03/04 02:30 AM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
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


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#75621 18/03/04 02:32 AM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
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)


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#75622 18/03/04 03:19 AM
Joined: Oct 2003
Posts: 80
R
Babel fish
OP Offline
Babel fish
R
Joined: Oct 2003
Posts: 80
K thanks smile


RockHound

Link Copied to Clipboard