![]() What I don't see is the part of the first script copying into C:\Program Files\teste? That could be the reason for error 1053 "not respond in a timely fashion. Then create a service called Agente - Teste and finally give you a message box to show you if there were any errors creating the services. The first script create a directory either in C:\Program Files (x86)\teste or C:\Program Files\teste. ![]() Latin Square password generatorĬorrect me if I'm wrong. _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.īack up and restore Windows user files _3 - Modified array functions that include support for 2D arrays. I hereby grant any person the right to use any code I post, that I am the original author of, on the forums, unless I've specifically stated otherwise in the code or the thread post. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude Give a programmer the correct code and he can do his work for a day. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to. If I posted any code, assume that code was written using the latest release version unless stated otherwise. By default, the Service Control Manager will wait 30,000 milliseconds (30 seconds) for a service to respond. My Code #include #NoTrayIcon _Singleton ( "" ) Única instância na máquina Global $path If = "X64" Then $path = "c:\Program Files (x86)\teste" DirCreate ( $path ) Else $path = "c:\Program Files\teste" DirCreate ( $path ) EndIf While 1 If Not ProcessExists ( "Teste.exe" ) Then Run ( $path & "\Teste.exe" ) EndIf Sleep ( 30000 ) WEnd My service installation code: include If = "X64" Then $path = "c:\Program Files (x86)\teste" DirCreate ( $path ) Else $path = "c:\Program Files\teste" DirCreate ( $path ) EndIf Global $retorno = _Service _Create ( "Agente.Teste", _ "Agente - Teste", _ $SERVICE_WIN32_OWN_PROCESS, _ $SERVICE_AUTO_START, _ $SERVICE_ERROR_IGNORE, _ $path & "\" ) MsgBox ( 0, "$retorno", $retorno ) MsgBox ( 0, , ) ![]() Then I created the service with another 3 that I found and it worked, however when starting the service I created it returns error 1053. I downloaded the UDF v4 from this link and even trying to just run the example it already displays error about the const variables in Securit圜3. ![]() Įxcuse me, but you said using the insert solution in Windows Startup is not effective for me. i recommend you study the example script attached to the UDF and modify it to your needs. the issue is obviously with your EXE - for a program to act like a service, in order to function properly, it must respond to requests from Windows Services Manager (a component of Windows in charge of managing services). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |