mIRC Homepage
ok, the alias is:

Code:
/mp3s {
  if (!$window(@Media)) { window -elnsk0 @Media Times New Roman,11 }
  var %mp3 1
  while ($findfile($sound(mp3),*.mp3,%mp3)) { aline -l 9 @Media $nopath($findfile($sound(mp3),*.mp3,%mp3)) | inc %mp3 1 }
}


Obviously all it does is lsit my mp3s to a @window. However, it locks up mirc till it's done listing it all. Is there any way I can get it to NOT temp lock mirc up? After it all lists, mirc goes back to being fully functional but while it's frozen I cant even type in it till it's done
to the best of my knowledge, no.

you could get another mIRC to load up, minimized to tray automatically and DDE the results to your main mIRC and close itself after
You're using a very inefficient way to list the MP3s there. Try this:

Code:
/mp3s {
  if (!$window(@Media)) { window -elnsk0 @Media Times New Roman,11 }
  !.echo -q $findfile($sound(mp3),*.mp3,0,aline -l 9 @Media $nopath($longfn($1-))).shortfn
}
Feck me running dude, that rocks! thanks millions smile
Just curious, why are you using the $longfn()/.shortfn combo and not just omit .shortfn?
In this case there's no reason really. Just force of habit from when I use commands in $findfile() which require that the filename be valid.

If someone wanted to add something to that code to include the file size after the filename they could put $file($1-) on the end of the command parameter and it would correctly get the file size, whereas if I didn't use .shortfn it would fail on multi-spaced filenames.
© mIRC Discussion Forums