mIRC Homepage
Posted By: da_hype on exit - 25/05/04 11:52 PM
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
Posted By: SS217 Re: on exit - 26/05/04 12:10 AM
Use $dialog automatically halts the script, might not work with on exit though. Give it a try.
Posted By: Zyzzyx26 Re: on exit - 26/05/04 12:20 AM
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
Posted By: da_hype Re: on exit - 26/05/04 02:33 AM
i know mirc has the option too... but i just want to know if i could make a custom dialog instead.
Posted By: FiberOPtics Re: on exit - 26/05/04 05:13 PM
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
Posted By: Iori Re: on exit - 30/05/04 02:50 AM
You can't actually halt the exit, you can only delay it while your own dialog (or $input) is open.
© mIRC Discussion Forums