Originally Posted By: Sparta
hmm, tested your code, the result was that it takes around 3 sec to open up popups, so nothing i can use, sorry


This is normal, and i can't change this behavior, the while loop will try to return a value for each disk, and especially for A:\.
Look into A:\ take so long time, so the pop up just show after the execution of the while, but you can avoid the problem by not returning something for A:\ :

Code:
alias dinfos1 {
  var %a 1 ,%b = $disk(0)
  while (%a <= %b) {
    if ($1 == 1) return -
    elseif ($1 == %a) { return $left($disk(%a).path,1) : echo -a $iif($disk(%a).type == cdrom,Cd-rom,$bytes($disk(%a).size,g).suf) }
    inc %a
  }
}


on my computer, $disk(1) represent A:\, don't know if it's the case on any computer so maybe you have to change the "1" in this line :
Code:
if ($1 == 1) return -


#mircscripting @ irc.swiftirc.net == the best mIRC help channel