lgvlgv Posted October 20, 2011 Share Posted October 20, 2011 This work but not as i want. it starts but i would like to wait for network to start before starting the service.. _Service_Create($sServiceName, $sServiceName, BitOR($SERVICE_INTERACTIVE_PROCESS, $SERVICE_WIN32_OWN_PROCESS), $SERVICE_AUTO_START, $SERVICE_ERROR_NORMAL, '"' & @WindowsDir & '\' & @ScriptName & '"') So i did this and every thing looks ok? "dependences" look exacly like for exampel "uvnc_service" (remote control app) so it should wait for tcpip before started.. _Service_Create($sServiceName, $sServiceName, BitOR($SERVICE_INTERACTIVE_PROCESS, $SERVICE_WIN32_OWN_PROCESS), $SERVICE_AUTO_START, $SERVICE_ERROR_NORMAL, '"' & @WindowsDir & '\' & @ScriptName & '"',Default,Default,"Tcpip") but this wont start, it says Error 1075: u could not start the service "test1" on local computer the depending service dosent exist or is marked for removel. //Pleace help a NoOb Link to comment Share on other sites More sharing options...
Morthawt Posted October 20, 2011 Share Posted October 20, 2011 (edited) Isn't there a delayed start option in services? Is there any way to apply that to your script? Either that or implement your own loop that checks for a successful ping to a server or something would be one method perhaps. Edited October 20, 2011 by Morthawt Free and easy Autoit scripting video tutorials (plus more videos always coming!) General video tutorials, especially correct and safe TeamSpeak permissions tutorials. Link to comment Share on other sites More sharing options...
lgvlgv Posted October 20, 2011 Author Share Posted October 20, 2011 funny part! This works but it cannot be right, right? _Service_Create($sServiceName, $sServiceName, BitOR($SERVICE_INTERACTIVE_PROCESS, $SERVICE_WIN32_OWN_PROCESS), $SERVICE_AUTO_START, $SERVICE_ERROR_NORMAL, '"' & @WindowsDir & '\' & @ScriptName & '"',"Tcpip","Tcpip","Tcpip") Link to comment Share on other sites More sharing options...
Morthawt Posted October 20, 2011 Share Posted October 20, 2011 Pshh I don't know but my policy is if you do something and it works do it! Unless you find more elegant ways of doing the same thing, working is working at the end of the day. Free and easy Autoit scripting video tutorials (plus more videos always coming!) General video tutorials, especially correct and safe TeamSpeak permissions tutorials. Link to comment Share on other sites More sharing options...
lgvlgv Posted October 20, 2011 Author Share Posted October 20, 2011 yep, its just weard? and for once i would like to know what im doing Link to comment Share on other sites More sharing options...
Morthawt Posted October 20, 2011 Share Posted October 20, 2011 Well look at it this way. You may not know the ins and the outs of how the car actually works, long as you know you can drive it, that's what counts. Free and easy Autoit scripting video tutorials (plus more videos always coming!) General video tutorials, especially correct and safe TeamSpeak permissions tutorials. 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