Sign in to follow this  
Followers 0
AutoChris

Running srvany

2 posts in this topic

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



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

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