AutoChris 0 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? Share this post Link to post Share on other sites
AutoChris 0 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. Share this post Link to post Share on other sites