AutoChris Posted June 2, 2006 Posted June 2, 2006 I have a compiled AutoIt script running as a service via srvany.exe. However, I noticed that when I logoff, srvany.exe survives but my script ends. Here is what I found from Microsoft:For WIN32 graphical applications: when the currently logged-in user is logging-off, all WIN32 top-level windows receive WM_QUERYENDSESSION and WM_ENDSESSION messages. Some WIN32 applications choose to terminate upon receipt of such messages. In order for your WIN32 application to survive logoff, it must not do that: instead, your windows procedure should call the default windows procedure on these messages.Is there a way I can keep my compiled script from terminating when the user logs off the computer?
AutoChris Posted June 2, 2006 Author Posted June 2, 2006 I have a compiled AutoIt script running as a service via srvany.exe. However, I noticed that when I logoff, srvany.exe survives but my script ends. Here is what I found from Microsoft:Is there a way I can keep my compiled script from terminating when the user logs off the computer?Solved it. I am using XYNTService.
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