Driveskull Posted March 5, 2014 Posted March 5, 2014 (edited) Hello i tried to make my script stop after certain time like : 40 seconds , but i dont know what function to use for that , my script sometimes bugs ( still looking for the problem ) but as i need to use it for now , i want to add code which will automate terminate the script after certain time . Is it possible ? Edited March 5, 2014 by Driveskull
Driveskull Posted March 5, 2014 Author Posted March 5, 2014 But i dont see there any functions which terminate script after certain time .
FireFox Posted March 5, 2014 Posted March 5, 2014 Think a little bit. AdlibRegister("_MyExitFunc", 40000) ;40sec While 1 ;dostuff Sleep(10) WEnd Func _MyExitFunc() Exit ;Terminate the script EndFunc
FireFox Posted March 5, 2014 Posted March 5, 2014 Nope. Take a look at the helpfile how AdlibRegister works.
Driveskull Posted March 5, 2014 Author Posted March 5, 2014 Ok thanks get it working , Adlib at the begining terminate function at the end , between while tags my script
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