mIRC Home    About    Download    Register    News    Help

Print Thread
listing files in @window TEMp freezes puter #93956 13/08/04 03:37 AM
Joined: Dec 2002
Posts: 1,527
L
landonsandor Offline OP
Hoopy frood
OP Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,527
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
Re: listing files in @window TEMp freezes puter #93957 13/08/04 03:41 AM
Joined: Mar 2004
Posts: 457
D
Danthemandoo Offline
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

Re: listing files in @window TEMp freezes puter #93958 13/08/04 03:48 AM
Joined: Dec 2002
Posts: 2,962
S
starbucks_mafia Offline
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.
Re: listing files in @window TEMp freezes puter #93959 13/08/04 03:58 AM
Joined: Dec 2002
Posts: 1,527
L
landonsandor Offline OP
Hoopy frood
OP Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,527
Feck me running dude, that rocks! thanks millions smile


Those who fail history are doomed to repeat it
Re: listing files in @window TEMp freezes puter #93960 13/08/04 10:40 AM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline
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
Re: listing files in @window TEMp freezes puter #93961 13/08/04 12:55 PM
Joined: Dec 2002
Posts: 2,962
S
starbucks_mafia Offline
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.