Merrik 0 Posted March 15, 2011 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
water 2,387 Posted March 15, 2011 I also read: Did you read the Howto section in the specified link? My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX (NEW 2020-12-15 - Version 1.6.3.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2020-06-27 - Version 1.3.2.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - WikiTask Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - WikiTutorials:ADO - Wiki, WebDriver - Wiki Share this post Link to post Share on other sites
Merrik 0 Posted March 15, 2011 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
water 2,387 Posted March 15, 2011 (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 March 15, 2011 by water My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX (NEW 2020-12-15 - Version 1.6.3.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2020-06-27 - Version 1.3.2.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - WikiTask Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - WikiTutorials:ADO - Wiki, WebDriver - Wiki Share this post Link to post Share on other sites
Merrik 0 Posted March 15, 2011 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
water 2,387 Posted March 15, 2011 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 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX (NEW 2020-12-15 - Version 1.6.3.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2020-06-27 - Version 1.3.2.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - WikiTask Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - WikiTutorials:ADO - Wiki, WebDriver - Wiki Share this post Link to post Share on other sites
Merrik 0 Posted March 15, 2011 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
water 2,387 Posted March 15, 2011 My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX (NEW 2020-12-15 - Version 1.6.3.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2020-06-27 - Version 1.3.2.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - WikiTask Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - WikiTutorials:ADO - Wiki, WebDriver - Wiki Share this post Link to post Share on other sites