mIRC Home    About    Download    Register    News    Help

Print Thread
/exit -d #14404 07/03/03 02:55 AM
Joined: Dec 2002
Posts: 54
S
SergioNL Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Dec 2002
Posts: 54
an options -d (dont confirm)
in the /exit command

that would be usefull for muh autorecover mirc.ini script with loads another mirc.exe closes the normal mirc.exe and that other mirc.exe recovers the mirc.ini of the normal mirc.exe and restarts the normal mirc.exe again,
if ppl have that confirm on is kinda hard to do that

sorry if my story sounds confusing

Re: /exit -d #14405 07/03/03 10:27 AM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
In the meantime you can use this piece of code to do it:
Code:
alias exitd exit | .timer 1 0 sendkeys {ENTER}
alias sendkeys var %a = sendkeys $+ $ticks | .comopen %a WScript.Shell | if !$comerr { .comclose %a $com(%a,SendKeys,3,bstr,$1-) }


Calling /exitd would simulate hitting the Yes button in the confirmation dialog.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Re: /exit -d #14406 07/03/03 11:30 AM
Joined: Feb 2003
Posts: 32
S
SaX0n Offline
Ameglian cow
Offline
Ameglian cow
S
Joined: Feb 2003
Posts: 32
Yeah right... but what if you dont have WSH installed? A lot of Anti-Virus programs encourage you to disable it if it is installed. And it isn't pre-installed on Win95/Win98 it's an optional component. Im not sure about WinME. All these WSH solutions are cool, though not good for mass-distributed scripts.

It seems com isn't much use in mIRC without WSH. crazy

Re: /exit -d #14407 07/03/03 07:40 PM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
If they don't have WSH installed... the script won't work. There is no alternative for this particular problem atm, so it's better to make it work on some systems than none. Besides, if it doesn't work, no harm done, all the user has to do is press OK.

However, you do have a point about mass distributed scripts: there might be cases that the unexpected absense of WSH would lead to a 'major' bug in the script. So, the script should first check for the existence of WSH (there's $comerr and the Version property) before attempting to use it.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Re: /exit -d #14408 31/08/03 06:27 PM
Joined: Jun 2003
Posts: 67
D
demitrix Offline
Babel fish
Offline
Babel fish
D
Joined: Jun 2003
Posts: 67
alias exitd {
quit
exit
}


while (demi == nub) {
inc %skill
}