Bart Posted July 12, 2006 Share Posted July 12, 2006 I start my script with HotKeySet("^q", "Func1") While 1 Sleep(10) Wend In Func1 I use some error trapping like If @error = 1 Then MsgBox(0, "Error", "Something went wrong.") XXXX EndIf Now what do I use on the place of XXXX? I don't want to exit the script completely. I just want to go back to the loop waiting for a hotkey to be pressed. Even more difficult (for me that is ) it's getting when I open a file and something goes wrong after I have opened the file. I will need to close it before going back to the hotkey loop, but I don't know how to check if a file is open (if the file handle exists). Can anybody please shed some light on this? TIA! Bart Link to comment Share on other sites More sharing options...
Developers Jos Posted July 12, 2006 Developers Share Posted July 12, 2006 Now what do I use on the place of XXXX? Return SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Bart Posted July 12, 2006 Author Share Posted July 12, 2006 Return Bedankt, Jos! That was a lot easier than expected! Now I'l only need to incorporate Eval or IsDeclared in the routines with the file that is open or not, and I am well on my way. Bart 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