soulhealer Posted April 27, 2007 Posted April 27, 2007 Hi, my scripts always fail to run whenever i want to run it as service... it appears because of Windows requires feedback from programs that run as service, to tell Windows, that the service is running well now, so windows won't shut it back(becuase any service that fails to run, will be shutted down by the system)... so, what function on script to tell windows that the service is now running?
DTV Posted April 27, 2007 Posted April 27, 2007 Hi, Like you said, services in WinNT and above require communication with the Service Control Manager (SCM). While I don't know how to do this, if possible, from within AutoIt, you can use a Microsoft tool called SrvAny.exe. It is included with the Resource Kit. Regards.
Developers Jos Posted April 27, 2007 Developers Posted April 27, 2007 (edited) Hi,my scripts always fail to run whenever i want to run it as service... it appears because of Windows requires feedback from programs that run as service, to tell Windows, that the service is running well now, so windows won't shut it back(becuase any service that fails to run, will be shutted down by the system)... so, what function on script to tell windows that the service is now running?Did you read the post i pointed you to ? this is also covert there ... Edited April 27, 2007 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
soulhealer Posted April 28, 2007 Author Posted April 28, 2007 (edited) Did you read the post i pointed you to ? this is also covert there ...i get it... so srvany.exe who runs the scripts, and srvany is the service executable...but i got a problem, i want the service to be able interact with desktop,..i ticked "Allow service to interact with desktop"and yes, the script does able to interact, GUI appears, butsrvany.exe also appears on the screen... so how to hide this srvany.exe window? Edited April 28, 2007 by soulhealer
soulhealer Posted April 28, 2007 Author Posted April 28, 2007 nvm... i added winsetstate("c:\srvany.exe",@SW_HIDE) it worx
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