Jump to content
Sign in to follow this  
Jvanleuvan

Help Supressing Errors

Recommended Posts

Jvanleuvan

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)

Thanks

Jonathan

Edited by Jvanleuvan

Share this post


Link to post
Share on other sites
Valuater

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


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

8)

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

Edited by Valuater

NEWHeader1.png

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.