Sign in to follow this  
Followers 0
Merrik

Creating A Service

8 posts in this topic

Hi,

I could use some help creating a service. This is what I tried - see below. I also read:

How do you register the Service so it shows up under Services?

Autoit

#include "Services.au3"

While 1

If @WDAY = 2 Then

MsgBox(16, "Hello")

EndIf

WEnd

/autoit

Share this post


Link to post
Share on other sites



I also read:

Did you read the Howto section in the specified link?

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Did you read the Howto section in the specified link?

Yeah I did. Still stumped

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Could you please give more information?

Do you get any error message?

If you start service.msc do you see the Autoit_service?

Is it started?

Does the service allow interaction with the desktop?

It's easier to help you if we have enough information!

Edited by water

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Could you please give more information?

Do you get any error message?

If you start service.msc do you see the Autoit_service?

Is it started?

Does the service allow interaction with the desktop?

It's easier to help you if we have enough information!

I really appreciate your help on this. I created the script you see above, just to learn. I thought that by including the #include "Services.au3" was all I needed.

I compiled the script and even tried the -l from teh command line. I'm new to this and I ralize there are some steps I'm missing.

Share this post


Link to post
Share on other sites

Please have a look at the example script provoided on the site. It shows what has to be done when you code your own service.

Compile it, run the exe with flag -i to install the service, start the service.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Please have a look at the example script provoided on the site. It shows what has to be done when you code your own service.

Compile it, run the exe with flag -i to install the service, start the service.

Update: Service is working great.

Thanks Water

Share this post


Link to post
Share on other sites
:)

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
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
Sign in to follow this  
Followers 0