StevenOfPomroyIL Posted February 7, 2011 Posted February 7, 2011 Hi I'd like to build in a feature into my program that kills the program after 30 minutes from the time it was launched. Other than running a parallel script that will use a timer and kill the first script after 30 min passes, how could I do that from within a single script? In other words, how do you get a script to kill itself after 30 minutes ellapses? Sorry in advanced if the easiness of this issue offends you. Best, Jon
jvanegmond Posted February 7, 2011 Posted February 7, 2011 Something like this: AdlibRegister("Suicide", 30*60*1000) While 1 Sleep(100) ; Your program here WEnd Func Suicide() ; Goodbye cruel world Exit EndFunc github.com/jvanegmond
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