Jump to content

@error from AutoIt3X


Guest Greg Thomas
 Share

Recommended Posts

Guest Greg Thomas

How can I get the error code (if at all) when using the ActiveX control? As far as I can see, although I can set the RunErrorsFatal option, there's no way of catching the error.

With RunErrorsFatal=1, I would expect something like a VB error to be raised (or whatever the language neutral equivalent is).

With RunErrorsFatal=0, I would look at the error flag, but I can't see a way of getting it! Any ideas?

Thanks,

Greg

Link to comment
Share on other sites

How can I get the error code (if at all) when using the ActiveX control? As far as I can see, although I can set the RunErrorsFatal option, there's no way of catching the error.

With RunErrorsFatal=1, I would expect something like a VB error to be raised (or whatever the language neutral equivalent is).

With RunErrorsFatal=0, I would look at the error flag, but I can't see a way of getting it! Any ideas?

Thanks,

Greg

Wouldn't the errors be the same as autoit3 itself? I'm just learning vbscript so I could quite possibly be wrong

Rick

Link to comment
Share on other sites

  • Administrators

How can I get the error code (if at all) when using the ActiveX control? As far as I can see, although I can set the RunErrorsFatal option, there's no way of catching the error.

With RunErrorsFatal=1, I would expect something like a VB error to be raised (or whatever the language neutral equivalent is).

With RunErrorsFatal=0, I would look at the error flag, but I can't see a way of getting it! Any ideas?

Thanks,

Greg

There is no "fatal" error in AutoItX because it just returns control back to the calling VBScript with a return value.
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...