manetho Posted July 13, 2010 Share Posted July 13, 2010 I'm new to scripts so can someone tell me how to make a script that checks if a program is running and if not start that program and repeat this like every 5 minutes? Link to comment Share on other sites More sharing options...
DicatoroftheUSA Posted July 13, 2010 Share Posted July 13, 2010 (edited) Look at the help file under the subject of process management. Put what you need in a while loop with the sleep function. Edited July 13, 2010 by DicatoroftheUSA Statism is violence, Taxation is theft. Autoit Wiki Link to comment Share on other sites More sharing options...
sleepydvdr Posted July 13, 2010 Share Posted July 13, 2010 This should do it: $i = 0 Do If ProcessExists("Process.exe") Then Sleep(30000) Else Run("c:\Program Files\A Program\Process.exe") EndIf Until $i = 1 #include <ByteMe.au3> Link to comment Share on other sites More sharing options...
manetho Posted July 15, 2010 Author Share Posted July 15, 2010 Thanks alot <3 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