Clicking Exit, the client should just propose the dialog without taking action towards any function, but this is not the case

to evade the dcx dll, you can create an event on "exit" that uses the alias?
or you can force the close behavior so that it does not propose the choice though in mirc options is enabled this function?

alias load_dcx {
if ($dll(dcx.dll)) return
dll dcx.dll LoadDCX | ; replace this with the line to initialize dcx
}



Thanks argv0


Unloading a DLL

You can unload a loaded DLL by using the -u switch:



/dll -u <filename>



You can browse the list of loaded DLLs by using:



$dll(N/filename) returns the Nth loaded DLL



mIRC will automatically unload a DLL if it is not used for ten minutes, or when mIRC exits.



You can also define an UnloadDll() routine in your DLL which mIRC will call when unloading a DLL to allow it to clean up.



int __stdcall UnloadDll(int mTimeout);



The mTimeout value can be:



0 UnloadDll() is being called due to a DLL being unloaded with /dll -u.



1 UnloadDll() is being called due to a DLL not being used for ten minutes. The UnloadDll() routine can return 0 to keep the DLL loaded, or 1 to allow it to be unloaded.



2 UnloadDll() is being called due to a DLL being unloaded when mIRC exits.

Last edited by DEATHJ0KER; 28/04/12 12:01 PM.

A Creative & Interactive mIRC Scripting