Jump to content

Recommended Posts

Posted

Hello every one,

 

I'm developing one software with Internet Explorer.

And now, I want stop all process when I got error or warning message.

IE.au3 T3.0-2 Warning and IE.au3 T3.0-2 Error

How I can get this event?

Thanks!

Posted

Welcome to the forum.

 

Read this:  How to use IE.au3  UDF with  AutoIt v3.3.14.x  

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

@mLipok The first, I'm very thanks for reply to me.

Here is my source but I can't receive the MsgBox when get Error event.

#include <IE.au3>
#include <Array.au3>
#include <Debug.au3>
#include <MsgBoxConstants.au3>
_IEErrorHandlerRegister()
...
_IELinkGetCollection($oIE)
Local $oLinks = _IELinkGetCollection($oIE)
Local $iNumLinks = @extended
For $oLink In $oLinks
If $oLink.href = "http://thelink....." Then
_IEAction($oLink, "click")
If @error Then
    MsgBox($MB_ICONERROR, 'Error detect', '@error = ' & @error & @CRLF & '@extended = ' & @extended)
    ; Set @error when you return from function with Failure
Endif
ExitLoop
EndIf
Next

 

Posted

My source working good rightnow. Following the introduction of your link.

Very thanks.

Can I have your facebook or something for give another question?

Posted (edited)

Ask here on the forum. 

ps. I do not have facebook account, only email and few accounts on forums like this one.

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

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
  • Recently Browsing   0 members

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