Jump to content

Recommended Posts

Posted

Hi, 

i am trying to access to this site and get the values from it's first table. Here is my code:

Local $oIE = _IECreate($sWeb)

Local $oTable = _IETableGetCollection($oIE, 0)
If @error Then MsgBox(0, "", "Error " & @error)
 

So, the error i'm getting is number 7  ($_IEStatus_NoMatch) - No Match  and i have no clue what's going wrong.  Any idea why Autoit is not getting the table?

Thank you in advance!

Posted

Well, i think it's because i'm trying to access a table withing a frame directly with  _IETableGetCollectio. I guess i should get the frames first and then get to the table.

I'll try it and see what happens.

Posted (edited)

yup, it works perfectly now. Here's the code:

Local $oFrames = _IEFrameGetCollection($oIE)

Local $iNumFrames = @extended

If @error Then MsgBox(0, "", "Error " & @error)
For $i = 0 To ($iNumFrames - 1)
        $oFrame = _IEFrameGetCollection($oIE, $i)
Next
Local $oTable = _IETableGetCollection($oFrame, 0)
Local $aTableData = _IETableWriteToArray($oTable, True)

Thank you!

Edited by lillo78

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