Champak Posted March 18, 2014 Share Posted March 18, 2014 When you force the shutdown of the computer/windows, does it just force exit an autoit program, or will a program go through its exit function? I'm leaning towards the first. So if that's the case, is there a way to set a program up to see if windows is shutting down so I can automatically exit the program before windows forces it to exit? Link to comment Share on other sites More sharing options...
JohnOne Posted March 18, 2014 Share Posted March 18, 2014 (edited) Depends what code you pass it -> help file. EDIT: sorry, think I misread question. Edited March 18, 2014 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
mikell Posted March 18, 2014 Share Posted March 18, 2014 Searching the forum for 'shutdown' in topic titles brings this out : Link to comment Share on other sites More sharing options...
Champak Posted March 18, 2014 Author Share Posted March 18, 2014 Thanks Link to comment Share on other sites More sharing options...
Champak Posted March 18, 2014 Author Share Posted March 18, 2014 I just came across a different function. OnAutoItExitRegister. Is it better/safer to use this, or the winapi_shutdown functions to call my exiting function? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now