Sign in to follow this  
Followers 0
JonathanChan

Catch ExitCodes?

4 posts in this topic

Hello...

Is it possible with autoit to catch if the process is being terminated/closed because of a shutdown or something else? I'd like to save a few variables to registry and clean up a few files on exit. Any help appreciated!

Thanks!

Share this post


Link to post
Share on other sites



The feature of Windows shutdown recognition for AutoIt scripts was added the Beta version of AutoIt.

Have a look in the Contents of the beta helpfile in Keyword/Statement Reference for Func OnAutoItExit() for further help on this. Look in the remarks for @ExitCode and @ExitMethod.

:lmao:

Share this post


Link to post
Share on other sites

Thanks... I'll wait till it comes to stable... :lmao:

Share this post


Link to post
Share on other sites

You could be waiting for a long time then. My suggestion - get beta. With AutoIt, beta = new, not unstable.

Share this post


Link to post
Share on other sites

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

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0