Ivanman Posted November 16, 2011 Share 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! Link to comment Share on other sites More sharing options...
Ivanman Posted November 16, 2011 Author Share 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! Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted November 16, 2011 Moderators Share 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! Link to comment Share on other sites More sharing options...
Ivanman Posted November 17, 2011 Author Share 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 Link to comment Share on other sites More sharing options...
czardas Posted November 17, 2011 Share 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 Link to comment Share on other sites More sharing options...
spudw2k Posted November 18, 2011 Share 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: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ 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 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