Jump to content

SOLVED IE multiple tabs with _IEAttach + _IEQuit error


frank10
 Share

Recommended Posts

I'm testing the tabs in IE with __IENavigate like this:

#include <IE.au3>

local $oIE = _IECreate('',0,1,0)

;open TABS:
For $i = 1 To 15
    __IENavigate($oIE, "google.com", 0, 0x800)         
    Sleep(100)
Next
Sleep(2000)

;close TABS:
for $i= 1 to 15
    $oIE = _IEAttach ("", "instance", $i); ; Focus tab
    _IEQuit($oIE)
    ConsoleWrite("closed:" &$i  & " "  & @error & @CRLF)
    Sleep(100)
Next

but I got this errors after some tabs:

>Running:(3.3.14.2):C:\Program Files (x86)\AutoIt3\autoit3.exe "E:\DocumentiContabilità \____AMAZON_Kindle_SelfPublishing\PROG_analisiKW\Amazon2.au3"    
+>Setting Hotkeys...--> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop
--> IE.au3 T3.0-2 Warning from function __IENavigate, Unsupported function called. Not fully tested.
--> IE.au3 T3.0-2 Warning from function __IENavigate, Unsupported function called. Not fully tested.
--> IE.au3 T3.0-2 Warning from function __IENavigate, Unsupported function called. Not fully tested.
--> IE.au3 T3.0-2 Warning from function __IENavigate, Unsupported function called. Not fully tested.
--> IE.au3 T3.0-2 Warning from function __IENavigate, Unsupported function called. Not fully tested.
--> IE.au3 T3.0-2 Warning from function __IENavigate, Unsupported function called. Not fully tested.
--> IE.au3 T3.0-2 Warning from function __IENavigate, Unsupported function called. Not fully tested.
--> IE.au3 T3.0-2 Warning from function __IENavigate, Unsupported function called. Not fully tested.
--> IE.au3 T3.0-2 Warning from function __IENavigate, Unsupported function called. Not fully tested.
--> IE.au3 T3.0-2 Warning from function __IENavigate, Unsupported function called. Not fully tested.
--> IE.au3 T3.0-2 Warning from function __IENavigate, Unsupported function called. Not fully tested.
--> IE.au3 T3.0-2 Warning from function __IENavigate, Unsupported function called. Not fully tested.
--> IE.au3 T3.0-2 Warning from function __IENavigate, Unsupported function called. Not fully tested.
--> IE.au3 T3.0-2 Warning from function __IENavigate, Unsupported function called. Not fully tested.
--> IE.au3 T3.0-2 Warning from function __IENavigate, Unsupported function called. Not fully tested.
closed:1 0
closed:2 0
closed:3 0
closed:4 0
closed:5 0
closed:6 0
closed:7 0
closed:8 0
--> IE.au3 T3.0-2 Warning from function _IEAttach, $_IESTATUS_NoMatch
--> IE.au3 T3.0-2 Error from function _IEQuit, $_IESTATUS_InvalidDataType
closed:9 3
--> IE.au3 T3.0-2 Warning from function _IEAttach, $_IESTATUS_NoMatch
--> IE.au3 T3.0-2 Error from function _IEQuit, $_IESTATUS_InvalidDataType
closed:10 3
--> IE.au3 T3.0-2 Warning from function _IEAttach, $_IESTATUS_NoMatch
--> IE.au3 T3.0-2 Error from function _IEQuit, $_IESTATUS_InvalidDataType
closed:11 3
--> IE.au3 T3.0-2 Warning from function _IEAttach, $_IESTATUS_NoMatch
--> IE.au3 T3.0-2 Error from function _IEQuit, $_IESTATUS_InvalidDataType
closed:12 3
--> IE.au3 T3.0-2 Warning from function _IEAttach, $_IESTATUS_NoMatch
--> IE.au3 T3.0-2 Error from function _IEQuit, $_IESTATUS_InvalidDataType
closed:13 3
--> IE.au3 T3.0-2 Warning from function _IEAttach, $_IESTATUS_NoMatch
--> IE.au3 T3.0-2 Error from function _IEQuit, $_IESTATUS_InvalidDataType
closed:14 3
--> IE.au3 T3.0-2 Warning from function _IEAttach, $_IESTATUS_NoMatch
--> IE.au3 T3.0-2 Error from function _IEQuit, $_IESTATUS_InvalidDataType
closed:15 3
+>10:43:27 AutoIt3.exe ended.rc:0
+>10:43:27 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 12.55

 

Any idea?

Edited by frank10
Link to comment
Share on other sites

It is normal since your are closing instances.  At 8 there is no more instances with that number.  If you want to close them all use instance #1 for the number of instances (ie. 15).

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...