mIRC Homepage
Posted By: cybah Need help with showing loaded scripts - 23/02/03 03:49 PM
Could someone give me an alias or script that echo's all the loaded scripts in mirc?
confused
TY smile
Posted By: Jerk Re: Need help with showing loaded scripts - 23/02/03 03:53 PM
All you need is a while loop and $script()
Code:
ShowScripts {
  var %i = 1
  while ($script(%i)) { 
    echo $color(info) -at $script(%i)
    inc %i
  }
}
I myself would use echo $color(info) -at $nopath($script(%i)) , just cause if i wanted to know all my loaded scripts, i would just want the filenames, not the entire part to the file, just thought you might like it the same way wink
Posted By: Jerk Re: Need help with showing loaded scripts - 23/02/03 03:59 PM
Picky picky :tongue: It's just an example for the original poster to build from. grin
Posted By: Hammer Re: Need help with showing loaded scripts - 23/02/03 04:10 PM
My $0.02.
Code:

ShowScripts {
  var %i = 1
  linesep -a
  echo $color(info) -abfirt * Loaded scripts:
  while $nopath($script(%i)) { 
    echo $color(info) -abfirt %i $+ . $ifmatch
    inc %i
  }
  linesep -a
}

:tongue:
Posted By: cybah Re: Need help with showing loaded scripts - 23/02/03 05:52 PM
Ty it workz shocked
Posted By: qwerty Re: Need help with showing loaded scripts - 23/02/03 06:40 PM
My 0.00000002$: what if the script file is named "0" ? smirk
Posted By: Hammer Re: Need help with showing loaded scripts - 23/02/03 06:47 PM
I suppose it would also fail if you named your $false or $null. wink
© mIRC Discussion Forums