/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
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.
Spelling mistakes, grammatical errors, and stupid comments are intentional.