Jump to content

services created by _CreateService from ServiceControl.au3


Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • Developers

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 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.
  :)

Link to comment
Share on other sites

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, but

srvany.exe also appears on the screen... so how to hide this srvany.exe window?

Edited by soulhealer
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...