mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
OP Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
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


Those who fail history are doomed to repeat it
Joined: Mar 2004
Posts: 457
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Mar 2004
Posts: 457
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

Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
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
}


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
OP Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
Feck me running dude, that rocks! thanks millions smile


Those who fail history are doomed to repeat it
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Just curious, why are you using the $longfn()/.shortfn combo and not just omit .shortfn?


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
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.

Link Copied to Clipboard