netviz Posted June 2, 2008 Share Posted June 2, 2008 Is there any way code for AutoIT that can run a script for a fixed period of time, say 30 minutes, and if the script hasn't completed by this time, exit the script? Link to comment Share on other sites More sharing options...
Pain Posted June 2, 2008 Share Posted June 2, 2008 TimerDiff Link to comment Share on other sites More sharing options...
netviz Posted June 2, 2008 Author Share Posted June 2, 2008 This would mean that I'd have to wrap every window interaction (SendKeys, WinWaits, etc) in a loop checking the time difference. Is there a simpler way to start a timer and have AutoIT automatically check this without the need for a loop? Or would it just be easier to wrap the AutoIT script in a VBScript and have that do the checking instead? Link to comment Share on other sites More sharing options...
monoceres Posted June 2, 2008 Share Posted June 2, 2008 This would mean that I'd have to wrap every window interaction (SendKeys, WinWaits, etc) in a loop checking the time difference. Is there a simpler way to start a timer and have AutoIT automatically check this without the need for a loop? Or would it just be easier to wrap the AutoIT script in a VBScript and have that do the checking instead? I would go with AdlibEnable() AdlibEnable("close",60*1000) Do sleep(100) Until Not "Something" ; Lots of code, blabla Func close () Exit EndFunc Broken link? PM me and I'll send you the file! 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