mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2003
Posts: 23
C
cybah Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Feb 2003
Posts: 23
Could someone give me an alias or script that echo's all the loaded scripts in mirc?
confused
TY smile

Joined: Dec 2002
Posts: 169
J
Vogon poet
Offline
Vogon poet
J
Joined: Dec 2002
Posts: 169
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
  }
}

Joined: Dec 2002
Posts: 271
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 271
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

Joined: Dec 2002
Posts: 169
J
Vogon poet
Offline
Vogon poet
J
Joined: Dec 2002
Posts: 169
Picky picky :tongue: It's just an example for the original poster to build from. grin

Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
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:


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
Joined: Feb 2003
Posts: 23
C
cybah Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Feb 2003
Posts: 23
Ty it workz shocked

Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
My 0.00000002$: what if the script file is named "0" ? smirk


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
I suppose it would also fail if you named your $false or $null. wink


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C

Link Copied to Clipboard