Driveskull Posted March 5, 2014 Share 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 Link to comment Share on other sites More sharing options...
FireFox Posted March 5, 2014 Share Posted March 5, 2014 Hi, Take a look at AdlibRegister. Br, FireFox. Link to comment Share on other sites More sharing options...
Driveskull Posted March 5, 2014 Author Share Posted March 5, 2014 But i dont see there any functions which terminate script after certain time . Link to comment Share on other sites More sharing options...
FireFox Posted March 5, 2014 Share 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 Link to comment Share on other sites More sharing options...
FireFox Posted March 5, 2014 Share Posted March 5, 2014 Nope. Take a look at the helpfile how AdlibRegister works. Link to comment Share on other sites More sharing options...
Driveskull Posted March 5, 2014 Author Share Posted March 5, 2014 Ok thanks get it working , Adlib at the begining terminate function at the end , between while tags my script 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