Hi, I had already asked before about the "CLOSING EVENT".
Jos Answered:
OnAutoItExitRegister()
It's an awesome idea, however it isn't working all the time. For example I made a small script:
I compiled it, and after I pressed CTRL+ALT+DEL and stopped it, nothing happened. If I close it with the tray icon, it works perfectly. So on, I think it only works if the autoit closes itself, or I've got no idea
_____________________
guiness suggested the following one:
WM_CLOSE
I tried to look for it at the forum, but found near nothing, but this:
http://www.autoitscript.com/autoit3/docs/appendix/WinMsgCodes.htm
The problem is that taskmgr forces to close, so I'm not sure if it sends WM_CLOSE to the program.
_____________________
Is there any way to detect such commands? (I've got idea how to use raw message codes like wm_close, or wm_quit)