Guest colquhounb Posted August 4, 2005 Posted August 4, 2005 Quick question, i can not find the answer in the help, and I think it is simple... I currently have a large .au3 file with many functions in it. I have a loop cycling through looking for particular events to happen, when they do, a particular function is launched. If, while the user is being stepped through a function, @error =1 or someone hits cancel, I need to exit the function. I do not need autoit to close though. I currently use If @error =1 then Endfunc but this is not good when upgrading to the latest version. What would be an alternative, keeping in mind I only want to exit one function, and keep autoit cycling happily waiting for the next event to occur? Any help appreciated....
therks Posted August 4, 2005 Posted August 4, 2005 You will have to test the @error within the function, then use Return. If @error = 1 Then Return 0 My AutoIt Stuff | My Github
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