mIRC Home    About    Download    Register    News    Help

Print Thread
Password to enter mIRC #31626 23/06/03 09:02 AM
Joined: Jan 2003
Posts: 28
H
Hendon Offline OP
Ameglian cow
OP Offline
Ameglian cow
H
Joined: Jan 2003
Posts: 28
I know you can lock mIRC while you're in it but is it possible to make a password before you can open mIRC?


===================================
Live my life for a day.. I'll show you where I've been.
Re: Password to enter mIRC #31627 23/06/03 09:21 AM
Joined: Jan 2003
Posts: 18
I
Indefinate Offline
Pikka bird
Offline
Pikka bird
I
Joined: Jan 2003
Posts: 18
Try this:

alias password {
if (%password == on) { goto login }
if (%password == off) { halt }
:login
.showmirc -t
/set %times 1
/set %passwordtry1 $?*="Password:"
if (%passwordtry1 == %yourpass) { goto success }
if (%passwordtry1 != $1) { goto login2 }
:login2
/set %times 2
/set %passswordtry2 $?*="Password:"
if (%passwordtry2 == %yourpass) { goto success }
if (%passwordtry2 != $1) { goto login3 }
:login3
/set %times 3
/set %passwordtry3 $?*="Password:"
if (%passwordtry3 == %yourpass) { goto success }
if (%passwordtry3 != $1) { goto sorry }
:sorry
if (%times == 3) { /exit }
:success
.showmirc -s
/unset %passwordtry1
/unset %passwordtry2
/unset %passwordtry3
/unset %times
}

menu status,menubar {
Password System ( $+ %password $+ )
.On:/set %password on | /techo Password is now ON
.-
.Off:/set %password off | /techo Password is now OFF
.-
.Change Password:/newpass
}

alias techo {
if (%scriptstamp == 1) { echo -at %s $1- }
else { echo -a %s $1- }
}

alias newpass {
/set %newpasstry $?*="Old password:"
if (%newpasstry == %yourpass) { goto change }
if (%newpasstry != $1) { goto sorry }
:change
/set %yourpass $?*="New password:" | halt
/unset %newpasstry
:sorry
/techo Wrong password
/unset %newpasstry
}

on 1:START { /password }

Re: Password to enter mIRC #31628 23/06/03 09:43 AM
Joined: Jun 2003
Posts: 130
O
obsessed Offline
Vogon poet
Offline
Vogon poet
O
Joined: Jun 2003
Posts: 130
Very messy all you need is
alias password {
if (%password != on) return
.showmirc -t
var %times = 1
while (%times <= 3) {
if ($?*="Password:" == %yourpass) { .showmirc -s | return }
inc %times 1
}
exit
}

Last edited by obsessed; 23/06/03 09:46 AM.

If only women came with popup menus and online help.
Re: Password to enter mIRC #31629 23/06/03 03:13 PM
Joined: Mar 2003
Posts: 437
M
MTech Offline
Fjord artisan
Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
i like the first one better.

Re: Password to enter mIRC #31630 23/06/03 09:54 PM
Joined: Feb 2003
Posts: 2,688
Raccoon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,688
There really ought to be a way to /showmirc -n or -t (minimized or tray) and specify that it goes into Lock Mode as if you were holding the CTRL key.

/showmirc -nrstxoplL
Manipulates the display of the main mIRC window, where -n = minimize, -r = restore, -s = show, -t = tray, -x = maximize, -o = on top, -p = not on top, -l = minimize & lock, -L = tray & lock.

- Raccoon

This suggestion posted on the Feature Suggestions forum.

Last edited by Raccoon; 23/06/03 10:01 PM.

Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Re: Password to enter mIRC #31631 29/06/03 06:07 PM
Joined: Feb 2003
Posts: 48
B
brad2 Offline
Ameglian cow
Offline
Ameglian cow
B
Joined: Feb 2003
Posts: 48
you could just go to options > general > lock, set the password, and check the box next to "ask for password on startup"

Re: Password to enter mIRC #31632 30/06/03 03:35 PM
Joined: Feb 2003
Posts: 2,688
Raccoon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,688
Yes, and if I want to issue this by /command? Say after I idle for 60 minutes, I want mIRC to auto-lock?


Well. At least I won lunch.
Good philosophy, see good in bad, I like!