Jump to content

script ist not running as service


Ivanman
 Share

Recommended Posts

  • Moderators

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

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 by Ivanman
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...