DarthVega Posted September 27, 2006 Share Posted September 27, 2006 Does anyone know how to create a system service in windows? I want to make an autoit script that can't be stopped by a user lower than the administrator. Link to comment Share on other sites More sharing options...
Paulie Posted September 27, 2006 Share Posted September 27, 2006 Does anyone know how to create a system service in windows? I want to make an autoit script that can't be stopped by a user lower than the administrator.I found your answerHere Link to comment Share on other sites More sharing options...
DarthVega Posted September 27, 2006 Author Share Posted September 27, 2006 Ok, I figured out how to create a service using sc.exe, but now I have a bigger problem... the service won't start. I've set it to auto and everything. When I try to start it manually it works for 10 seconds and gives me this error message: Could not start the autoitservice on Local Computer. Error 1053: The service did not respond to the start or control request in a timely fashon. Any ideas? Link to comment Share on other sites More sharing options...
jinxter Posted September 27, 2006 Share Posted September 27, 2006 Did you make it as an infinite loop ? like : while 1 ..... Wend I'm not sure, but I think if you make a program as a service you need to make it respond to the service service (?) ie. it doesn't respond to the start command. an OnEvent thingie might be better. you might have to browse through the documentation regarding the services and what it's supposed to return. > there are 10 types of people in the world, those who understand binary and those who don't. Link to comment Share on other sites More sharing options...
dabus Posted September 27, 2006 Share Posted September 27, 2006 *Waiting for ptrex to post his one* ... *ok, I'll do it for him* http://www.autoitscript.com/forum/index.php?showtopic=17581 Link to comment Share on other sites More sharing options...
jinxter Posted September 27, 2006 Share Posted September 27, 2006 oooooh.... nifty! (You learn something new everyday ) > there are 10 types of people in the world, those who understand binary and those who don't. Link to comment Share on other sites More sharing options...
ChrisL Posted September 27, 2006 Share Posted September 27, 2006 You need srvany from MS and read this:http://support.microsoft.com/kb/q137890/ [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
DarthVega Posted September 28, 2006 Author Share Posted September 28, 2006 (edited) Sweet, the process actually works now... although there are still a few more problems. The service can still be stopped by terminating the either the autoit exe or the srvany.exe. Also, when the autoit exe is terminated the service doesn't restart the program (even tho I've told it to). Thanks for the help. Edited September 28, 2006 by DarthVega Link to comment Share on other sites More sharing options...
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