dirty Posted February 23, 2010 Share Posted February 23, 2010 When External app is trying to close my script is there any way i could have my script to know about it ? For example using another script to close compiled running loop, is there anyway for that compiled running loop to identify that something is trying to close it and run some sort of function ? Maybe something like onAutoitClose or maybe i need some kind of case for my loop ? while1 Case $On_Autoit_Close somefunc() wend Func somefunc() msgbox(0,'','something is closing this app') ;do something Then Exit endfunc BTW there is no GUI or anything like that, just this simple loop with checking if process exist or not. I think i saw this somewhere but i just cant find it anymore. Am i looking for impossible ? Thanks in advance. Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now