mIRC Homepage
using $findfile to add MP3's to a list....

Code:
alias mp3list {
  $findfile(%lastemp3dir,*.mp3,0, did -az lilmp3 500 $left($nopath($1-),-4))
}


upon opening of the dialog, the above alias is performed...

Code:
on *:DIALOG:lilmp3:init:0: {
  mp3list 
}


The list will populate correctly.

I then get an error, of which I cant seem to find any documentation.

If not connected to a server: * /1076: not connected to server (line 148, curmp3menu.mrc)
-

line 148 being the $findfile...... line of the alias

If connected to a server: 1076 Unknown command

running debug:

-> nameless.uicn.net 1076
<- :nameless.uicn.net 421 JimShortz 1076 :Unknown command


The 1076 appears to be the number of files in the directory I am looking for files in.

I am stumped as to why mIRC is sending out that number as a command, when it completes the scan.

Any input is greatly appreciated.

Also, on a somewhat related note, is there any way to speed up the $findfile.... search when using large directories ?
mIRC thinks you're using it as a command. Use return.

Code:
alias mp3list {  
return $findfile(%lastemp3dir,*.mp3,0, did -az lilmp3 500 $left($nopath($1-),-4))
}  
Thank you, that did the trick!
© mIRC Discussion Forums