Sign in to follow this  
Followers 0
j00ls

trying to get started... IE_Errors

3 posts in this topic

#1 ·  Posted (edited)

Hi, i am trying to get started and this has been very frustrating. I am not new to programming, but I have no idea what is going on.

1.) I am using IE.au3 v2.4-1 (as an include) but the stdout still shows V2.4-0

2.) I am trying to write a little script that reads a html table and writes it to an xml file. (dont even worry about the last part for now.)

#include <IEv241.au3>; Include the UDF
#include <Array.au3>
#include <ExcelCom_udf.au3>
; Create an IE Browser
;
$oIE = _IECreate()
_IENavigate($oIE, "http://pda.hko.gov.hk/wxreporte.htm")
_IELoadWait($oIE, 0, 10000)
$oTable = _IETableGetCollection($oIE, 1)
; Read the table cells into a 2-D array
$otable2 = _IETableWriteToArray($oTable, False)
_ArrayDisplay($oTable, "show")
; Write the array contents out to the console
$todayevent = "c:\todaysevents.xlsx"
$oExcel= _ExcelBookOpen($todayevent)
sleep(1500)
        _ExcelWriteSheetFromArray($oExcel, $otable2, 1, 1, 1, 1)
sleep(1500)
$oIE = _IEQuit($oIE)

--> IE.au3 V2.4-0 Warning from function _IETableGetCollection, $_IEStatus_NoMatch

--> IE.au3 V2.4-0 Error from function _IETableWriteToArray, $_IEStatus_InvalidDataType

The web page is from an example I used... i think the first error has something to do with the page not loading before he does GetCollection (even though he's supposed to wait) I have no idea what the 2nd error is about - it is an html table so where is the problem ?

Thank you very much !

PS. He also allways opens 2 IE windows (all example scripts do) does AutoIT (concerning IE) not work with Vista or IE 7 ?

Edited by j00ls

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

great... half a day wastesd once agains just because of f*a§"% MS congeniality... just some messed up security issues in IE.

MS: thumbs down

AIT: thumb up :P

Edited by j00ls

Share this post


Link to post
Share on other sites

great... half a day wastesd once agains just because of f*a§"% MS congeniality... just some messed up security issues in IE.

MS: thumbs down

AIT: thumb up :)

hello, I have met the same question, can you tell me your solution?

thanks a lot.

Share this post


Link to post
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
Sign in to follow this  
Followers 0