Ivanman 0 Posted November 16, 2011 Hi @ all! I've got a AutoIt-Script, which i installed as a Service with winserv. This new serice is running, but it doesn't do its work. :-( Any ideas? Do i have to edit my script anyway? Thanks! Share this post Link to post Share on other sites
Ivanman 0 Posted November 16, 2011 i even tried it with very small scripts like a simple msgbox. but every script i installed as a service, doesn't do its work. it is installed - i checked it in the services.msc! Share this post Link to post Share on other sites
JLogan3o13 1,639 Posted November 16, 2011 Hi, Ivanman, welcome to the forum. Have you looked into the service udf? This should have everything you need to run your application as a service. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Share this post Link to post Share on other sites
Ivanman 0 Posted November 17, 2011 (edited) Hi!First - thanks for help! Now i looked at the service udf, but i have still a problem. when i compile my script, there is this error:C:Program FilesAutoIt3IncludeServices.au3(2215,7) : ERROR: main(): undefined function.#include <File.au3> #include <Services.au3> do _FileCreate("file"&@hour&@min&@sec&".txt") sleep(2000) until 1 = 0 Edited November 17, 2011 by Ivanman Share this post Link to post Share on other sites
czardas 1,269 Posted November 17, 2011 I've not encountered errors like that when compiling, since everything that runs without errors seems to compile without errors. I normally put the included files in the same folder as my script. Some people like to add UDFs to the includes folder in program files, but I don't do that. However I'm not convinced that the included file 'servicers.au3' is the problem, since I couldn't find a function called main() in the UDF. It could be a number of different things causing this error. operator64 ArrayWorkshop Share this post Link to post Share on other sites
spudw2k 231 Posted November 18, 2011 most scripts will not show interactive GUI elements unless the service is configured to do so...and often not unless it's run as the logged in user. Spoiler Things I've Made: AOT Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Share this post Link to post Share on other sites