mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2004
Posts: 26
U
Ameglian cow
OP Offline
Ameglian cow
U
Joined: Mar 2004
Posts: 26
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 ?

Joined: Apr 2003
Posts: 25
S
Ameglian cow
Offline
Ameglian cow
S
Joined: Apr 2003
Posts: 25
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))
}  

Joined: Mar 2004
Posts: 26
U
Ameglian cow
OP Offline
Ameglian cow
U
Joined: Mar 2004
Posts: 26
Thank you, that did the trick!


Link Copied to Clipboard