You could use something, like this;
alias showmirc {
if (l isin $1) {
; Checks if 'l' switch isin $1 (mIRC uses, mnrstxop)
if ((!$2) && (!%md5p)) { echo -a ERROR: INSUFFICENT PARAMETERS | return }
; Checks if a passwd is already stored, if not, you need to specify one.
if ($2) { set %md5p $md5($2) }
; Stores your pass in variable %md5p, as an MD5, not plain-text
}
; ends if statement
!showmirc $+(-,$remove($1,-,l))
; performs default showmirc commands.
}
on 1:APPACTIVE:{
; triggers when appstate changes.
if ($appactive == $false) && ($window(-2).state == tray) { set %md5pr $true }
; if mIRC isnt active, and its state is 'in the tray' set a variable so we know.
elseif (($appactive == $true) && (%md5pr)) {
; otherwise, if mIRC is active, and %md5pr is true, then mIRC must have just
[/color]; returned from the tray
while (%md5imp != %md5p) {
; while %md5imp isnt the same as your stored password, keep looping.
var %md5imp = $md5($input("What is the Password?",poqga,Password Request))
; in the loop we set %md5imp to the password your asked to type in, if
[/color]; its wrong, loop again, and again, if not end loop.
}
; end of while loop
unset %md5pr
; unset the %md5pr so next time mIRC isnt active and isnt in the tray it wont
[/color]; ask for the pass
}
; end if statement
}
Syntax; i.e. /showmirc -t[color:red]l passwd[/color]
You just add the 'l' parameter, once you have specified a password once you dont need to include it ever again, unless you /unset it manually or wish to change the password.
Hope this helps.
Eamonn.