Luigi Posted July 9, 2014 Share Posted July 9, 2014 How is the best way, to maintain a script run permanently? I have a diagnostics tool, and it need run all time to monitoring everything is happend with hardware and software pc. But, I have many problems with 'users'. Users knowingly/deliberately close the application. Sometimes the aplication crahs alone... Its is beta. Now I thinking is the best way is elevate the application to service level, run it as Windows Service. Realy, I try many forum's examples, I found many information. All is very very good. But I need know is the best way elevate this application to Windows Service? Have another options? Yes, I need techinical information, but, I need to talk, need advice, about this problem with others peoples with more knowledgement than I. What I need specifically? a) know viability and stability to run AutoIt as Windows Service; other ways to reach same result without Windows Service AutoIt; c) read/talk who actually uses Windows Service AutoIt, not try a script... If you can help me, please! Best regards, Detefon Visit my repository Link to comment Share on other sites More sharing options...
CoreTech Posted July 9, 2014 Share Posted July 9, 2014 Running a script as a Windows service in Session 0 can be tricky. Experiment with the free 30-day trial of AlwaysUp to see how viable it is for you. This tutorial shows how to set up an AutoIt script as a windows service. Link to comment Share on other sites More sharing options...
Luigi Posted July 10, 2014 Author Share Posted July 10, 2014 CoreTech, I have see your tool, have a beatifull design. But I need build a code. I need knowledgment. Thank for your answer. Br, Detefon. Visit my repository Link to comment Share on other sites More sharing options...
KaFu Posted July 10, 2014 Share Posted July 10, 2014 Set up an Admin Task to Start the program every x minutes and add a singleton function to your code. OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
Geir1983 Posted July 10, 2014 Share Posted July 10, 2014 OnAutoItExitRegister() Call your own program when it exits? Link to comment Share on other sites More sharing options...
Luigi Posted July 10, 2014 Author Share Posted July 10, 2014 Running a script as a Windows service in Session 0 can be tricky. I see something like about this, I will try this, maybe a good idea. Set up an Admin Task to Start the program every x minutes and add a singleton function to your code. I will try this! ^^ OnAutoItExitRegister() Call your own program when it exits? Geir1983, I try it too. But when you close with taskmanager, it not restart. Realy thank all answers. Its very apreciate. Br, Detefon. Visit my repository 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