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 ?