mIRC Home    About    Download    Register    News    Help

Print Thread
#32004 24/06/03 08:39 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
this is the script i use to get an mp3 list in my mp3 player:
$findfile(%mp3.directory,*.mp3,0,did -a $dname 7 $nopath($1-))

but as you can see here: the order is no way near alphabetical even though its in alphabetical order in my mp3 directory frown


any help writing a script to make the list of mp3's in alphabetical order will be greatly appreciated grin


new username: tidy_trax
#32005 24/06/03 09:12 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
mirc has no control over the order of files returned by $findfile. However, you could have used a sorted listbox.
Code:
  list id, x y w h, [color:red]sort[/color]

#32006 24/06/03 09:20 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
omg shocked i never knew thats what it did cheers


new username: tidy_trax
#32007 25/06/03 11:11 PM
Joined: Jan 2003
Posts: 41
T
Ameglian cow
Offline
Ameglian cow
T
Joined: Jan 2003
Posts: 41
And another very much faster way to get the MP3's
into the dialog is by using
Code:
 /loadbuf -o <dialog> <id> <filename> 


Then to remove the file's path, use this while-loop after loadbuf:
Code:
 set %tmp 1
while (%tmp <= $did(<id>).sel)) { did -o $dname <id> %tmp $nodir($ifmatch) | inc %tmp } 


Link Copied to Clipboard