mIRC Home    About    Download    Register    News    Help

Print Thread
on exit #84147 25/05/04 11:52 PM
Joined: Feb 2004
Posts: 119
D
da_hype Offline OP
Vogon poet
OP Offline
Vogon poet
D
Joined: Feb 2004
Posts: 119
Is there a way to halt an on exit?

like when u press the "X" button on the top right of mIRC, it will halt?

Code:
on *:exit: {
halt
<open custom dialog>
}


I tried to halt it using mIRC 6.14 but it don't work

Re: on exit #84148 26/05/04 12:10 AM
Joined: Apr 2003
Posts: 25
S
SS217 Offline
Ameglian cow
Offline
Ameglian cow
S
Joined: Apr 2003
Posts: 25
Use $dialog automatically halts the script, might not work with on exit though. Give it a try.

Re: on exit #84149 26/05/04 12:20 AM
Joined: Feb 2004
Posts: 714
Z
Zyzzyx26 Offline
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
Press [Alt]+[O] and, in the options panel, go to Other and click on the button that says Confirm. There, in the tab called When closing mIRC, confirm if, check Always

Hope it does it!

Zyzzy smile


"All we are saying is give peace a chance" -- John Lennon
Re: on exit #84150 26/05/04 02:33 AM
Joined: Feb 2004
Posts: 119
D
da_hype Offline OP
Vogon poet
OP Offline
Vogon poet
D
Joined: Feb 2004
Posts: 119
i know mirc has the option too... but i just want to know if i could make a custom dialog instead.

Re: on exit #84151 26/05/04 05:13 PM
Joined: Feb 2004
Posts: 2,019
FiberOPtics Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Hi,

as SS217 stated, you can use $dialog.

For example if you have a dialog table called "Exit" scripted in your remotes, then you can call it on exiting:

on *:EXIT: .echo -q $dialog(test,Exit)


Greetz


Gone.
Re: on exit #84152 30/05/04 02:50 AM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
You can't actually halt the exit, you can only delay it while your own dialog (or $input) is open.