Jump to content
Sign in to follow this  

Help Supressing Errors

Recommended Posts


I have an autoit Script that interfaces with Skype. It runs several times a day and works fine, How-ever every once in a while it fails with an error "$Skype1.Attach()... The Requested Action With this object has failed"

It failing is not a big deal, but the application just sits there with a message box open. (no-one is interactivly using this computer to click "ok")

I wanted to know if there is a way to supress critical errors and just have auto-it exit. ( so it can try again later)



Edited by Jvanleuvan

Share this post

Link to post
Share on other sites

$oMyError = ObjEvent("AutoIt.Error","MyErrFunc")

Func MyErrFunc()
; do something
; or ...
; do nothing


BTW... Welcome to the Autoit Forums!!!

Edited by Valuater


Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this