j00ls Posted October 11, 2008 Posted October 11, 2008 (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 October 11, 2008 by j00ls
j00ls Posted October 11, 2008 Author Posted October 11, 2008 (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 Edited October 11, 2008 by j00ls
leevy Posted February 10, 2009 Posted February 10, 2009 great... half a day wastesd once agains just because of f*a§"% MS congeniality... just some messed up security issues in IE.MS: thumbs downAIT: thumb up hello, I have met the same question, can you tell me your solution?thanks a lot.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now