Joshy Posted September 14, 2008 Share Posted September 14, 2008 #include <GUIConstants.au3> #include <String.au3> #include <IE.au3> #include <Array.au3> $i = 0 $parse = "0|0" $line = "" $statement = false $oIE = _IECreate("http://www.geocities.com/lito_raver/index.htm", 0, 0, 1) $oTable = _IETableGetCollection ($oIE, 1) $aTableData = _IETableWriteToArray ($oTable, True) _ArrayDisplay($aTableData) $lineparse = $aTableData[$A][0] & "|" & $aTableData[$A][1] $accountlist = UBound($aTableData) - 1 For $I = 0 To $accountlist If StringCompare($lineparse, $parse) Then MsgBox(0,"","True!") ExitLoop Else ContinueLoop EndIf Next so for some reason I am getting cannot create IE object and then it says that $lineparse cannot be created because atabledata is a non array variable or something Link to comment Share on other sites More sharing options...
Nahuel Posted September 14, 2008 Share Posted September 14, 2008 Well for some reason tables can't be obtained. Look: #include <IE.au3> $oIE = _IECreate("http://www.geocities.com/lito_raver/index.htm");, 0, 0, 1) $oTable =_IETagNameGetCollection ($oIE,"table") $iNumTables = @extended MsgBox(0, "Table Info", "There are " & $iNumTables & " tables on the page") $oTable =_IETableGetCollection ($oIE) $iNumTables = @extended MsgBox(0, "Table Info", "There are " & $iNumTables & " tables on the page") I tried many things, but with no success. Dale's the expert here, let's just see if he knows why this happens. Link to comment Share on other sites More sharing options...
DjDeep00 Posted September 14, 2008 Share Posted September 14, 2008 #include <GUIConstants.au3> #include <String.au3> #include <IE.au3> #include <Array.au3> $i = 0 $parse = "0|0" $line = "" $statement = false $oIE = _IECreate("http://www.geocities.com/lito_raver/index.htm", 0, 0, 1) $oTable = _IETableGetCollection ($oIE, 1) $aTableData = _IETableWriteToArray ($oTable, True) _ArrayDisplay($aTableData) $lineparse = $aTableData[$A][0] & "|" & $aTableData[$A][1] $accountlist = UBound($aTableData) - 1 For $I = 0 To $accountlist If StringCompare($lineparse, $parse) Then MsgBox(0,"","True!") ExitLoop Else ContinueLoop EndIf Next so for some reason I am getting cannot create IE object and then it says that $lineparse cannot be created because atabledata is a non array variable or something @Joshy...The reason why you are not able to get object is because there are frames on this page. Look at _IEFrameGetCollection & _IEFrameGetObjByName in the helpfile. Link to comment Share on other sites More sharing options...
DaleHohm Posted September 14, 2008 Share Posted September 14, 2008 The first (and in this case, only) table has an index of 0, not 1. $oTable = _IETableGetCollection ($oIE, 0) Dale p.s. the rest of your example code fails because $A in undefined Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble 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