hmm.. ok, I'll try that and see what happens.
In the long run I don't plan on using a custom window, but thought it would be a good way to be able to test my code without ruining the display/conversation flow of my channel windows.
So much for that idea. Adding the -l switch made my mIRC lockup.
Now possibly I failed to find/read about a switch or other requirement for using a listbox window, but I don't think I did.
Here's my current code that locked up mIRC. Removing the -l switch allows the code to work, but with the same problem.
alias music {
var %ticks = $ticks, %a = 1, %b = $disk(0)
if !$window(@Music) { .window -l @Music }
while %a <= %b {
echo @Music $disk(%a).path
if $disk(%a).type == fixed {
noop $findfile($disk(%a).path,*.mp3,0,echo @Music $1-)
}
elseif $disk(%a).type = remote {
noop $findfile($disk(%a).unc,*.mp3,0,echo @music $1-)
}
inc %a
}
%ticks = $calc($ticks - %ticks)
var %lines = $line(@music,0)
echo 11 @music Total lines %lines
echo 4 @music Total time %ticks milliseconds
echo 4 @music Average time $calc(%ticks / %lines)
}