gfunk999 Posted August 1, 2008 Share Posted August 1, 2008 (edited) Could someone please tell/help me, why can't I get this HP's BIOS or any table into an array from the site below? $oIE = _IECreate ("http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=us&prodNameId=3357378&prodTypeId=321957&prodSeriesId=3357377&swLang=8&taskId=135&swEnvOID=1093#120",0,1,0,0) $oTable = _IETableGetCollection ($oIE, 0) $aTableData = _IETableWriteToArray ($oTable, True) _ArrayDisplay($aTableData) Edited August 1, 2008 by gfunk999 Link to comment Share on other sites More sharing options...
TerarinKerowyn Posted August 1, 2008 Share Posted August 1, 2008 #include <IE.au3> #include <array.au3> $oIE = _IECreate ("http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=us&prodNameId=3357378&prodTypeId=321957&prodSeriesId=3357377&swLang=8&taskId=135&swEnvOID=1093#120",0,1,0,0) _IELoadWait($oIE) $oTable = _IETableGetCollection ($oIE, 29) $aTableData = _IETableWriteToArray ($oTable, True) _ArrayDisplay($aTableData) You were executing before the page loaded you can also do the same thing with _IECreate. Also look at the _IETableGetCollection you can get them all by going up 1 till 48 Contact via MSN: [email=terarink_msn@hotmail.com]terarink_msn@hotmail.com[/email], yahoo: terarink_yah Link to comment Share on other sites More sharing options...
gfunk999 Posted August 1, 2008 Author Share Posted August 1, 2008 Very nice indeed. I was using the sleep() function, but that didn't work, I see why as the page can load at different speeds depending on the PC. Did you look at the source code for the index number 29? #include <IE.au3> #include <array.au3> $oIE = _IECreate ("http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=us&prodNameId=3357378&prodTypeId=321957&prodSeriesId=3357377&swLang=8&taskId=135&swEnvOID=1093#120",0,1,0,0) _IELoadWait($oIE) $oTable = _IETableGetCollection ($oIE, 29) $aTableData = _IETableWriteToArray ($oTable, True) _ArrayDisplay($aTableData) You were executing before the page loaded you can also do the same thing with _IECreate. Also look at the _IETableGetCollection you can get them all by going up 1 till 48 Link to comment Share on other sites More sharing options...
TerarinKerowyn Posted August 1, 2008 Share Posted August 1, 2008 No I produce a loop that displayed them all and found 29 to be the one that had the Bios information on them Contact via MSN: [email=terarink_msn@hotmail.com]terarink_msn@hotmail.com[/email], yahoo: terarink_yah Link to comment Share on other sites More sharing options...
gfunk999 Posted August 1, 2008 Author Share Posted August 1, 2008 ahhh smart, my method is guessing haha. Thanks again! No I produce a loop that displayed them all and found 29 to be the one that had the Bios information on them Link to comment Share on other sites More sharing options...
gfunk999 Posted August 1, 2008 Author Share Posted August 1, 2008 Doh! I overlooked this example on the help section... $oTable = _IETableGetCollection ($oIE) $iNumTables = @extended MsgBox(0, "Table Info", "There are " & $iNumTables & " tables on the page") Link to comment Share on other sites More sharing options...
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