Prodigy Posted April 9, 2010 Share Posted April 9, 2010 Hi, What I'm trying to do is read a certain value in a table on a site, I got as far as getting the table with the value in it, into an array. #include <IE.au3> #include <Array.au3> $oIE=_IECreate("Site") $oTable = _IETableGetCollection ($oIE, 14) $aTableData = _IETableWriteToArray ($oTable, True) _ArrayDisplay($aTableData) Now I wish to read a value in lets say row 3 of column 1. I thought there would be a simple command like "_ArrayRead(3,1) returning the value in that cell, but it seems there isn't. Theres probably something stupid I'm overlooking, but I can't seem to find how to do this... Thanks in advance, Any help is appreciated... Link to comment Share on other sites More sharing options...
picea892 Posted April 9, 2010 Share Posted April 9, 2010 (edited) consolewrite($aTableData[3][1]) Edited April 9, 2010 by picea892 Link to comment Share on other sites More sharing options...
Prodigy Posted April 9, 2010 Author Share Posted April 9, 2010 Hmm, this really only gives me the number of characters in the cell Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted April 9, 2010 Share Posted April 9, 2010 (edited) Hmm, this really only gives me the number of characters in the cell Then that's what is in the cell.Edit: Just look at the _ArrayDisplay and you would see it's the same. Edited April 9, 2010 by AdmiralAlkex .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Prodigy Posted April 9, 2010 Author Share Posted April 9, 2010 Not really This is what is says under consolewrite in the helpfile: Return Value The amount of data written. If writing binary, the number of bytes written, if writing text, the number of characters written. Nevermind though, I've got it I added clipput($aTableData[3][1]) $Cell=clipget() msgbox(0,"test","Output: "&$cell) Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted April 9, 2010 Share Posted April 9, 2010 That doesn't make the slightest sense. Remove the clipboard stuff and do it right. MsgBox(0,"test","Output: " & $aTableData[3][1]) Or ConsoleWrite("Output: " & $aTableData[3][1]) Both will show you the same string as _ArrayDisplay, just in different ways. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Prodigy Posted April 9, 2010 Author Share Posted April 9, 2010 Ok, thanks guys Works like a charm now 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