Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Get Process Closed Event [AGAIN]

$
0
0

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:

  1.  
  2.     ToolTip( "Stop me" )
  3.     Sleep(200)
  4.  
  5. Func EndUP()
  6.     MsgBox(0, "message", "YOU STOPPED ME!")
  7.         Exit

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)


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>