This is my test code:
AutoIt
#include <IE.au3> Local $oIE $oIE = _IECreate("http://www.example1.com/", 0, 1, 1, 1) __IENavigate($oIE, "http://www.example2.com/", 0, 0x800) __IENavigate($oIE, "http://www.example3.com/", 0, 0x800) Local $oTabs[1], $i = 1 While 1 $oTabs[$i - 1] = _IEAttach($oIE, "instance", $i) If @Error = $_IEStatus_NoMatch Then ReDim $oTabs[$i - 1] ExitLoop EndIf ReDim $oTabs[$i + 1] $i += 1 WEnd Sleep(3000) Local $oText $oText = _IEBodyReadText($oTabs[0]) MsgBox(0, "Tab 1", $oText) $oText = _IEBodyReadText($oTabs[1]) MsgBox(0, "Tab 2", $oText) $oText = _IEBodyReadText($oTabs[0]) MsgBox(0, "Tab 3", $oText)
At the end of the code, you will see that I'm trying to input the text of the 1st first tab which is succeed, but when I try to check if the text reading on the 2nd tab with the _IEBodyReadText($oTabs[1]) libfunction and on the 3rd tab with _IEBodyReadText($oTabs[2]) they are fail.
Could you please guide me how to get the object variables pointing to the tabs of the Internet Explorer, to use for _IEBodyReadText() libfunction? Thank (Like) you!