flabes Posted April 23, 2013 Share Posted April 23, 2013 #include <Array.au3> #include <IE.au3> ;this is the Autoit sample script!!!!! $oIE_table = _IE_Example ("table") $oTable = _IETableGetCollection ($oIE_table, 0) $aTableData = _IETableWriteToArray ($oTable, True) _ArrayDisplay($aTableData) ;------------------------------------------------------------------------------------- I can see the Array, but i wont to have the datas available in the script(variables?) I like to find i.e. row 1 col 2 for next step Working myself since days thru the Samples to understand how Autoit is working. I know what problem I wont to solve, but in all Programs is importent how to write it. What i realy miss: ist the possibility to run the script line by line and the possibility to find out what the contens of the variables is.As it in VB is Tried a and need realy help Sorry for my bad englisch but i hope you understand what i mean. Thanks for help in advance Link to comment Share on other sites More sharing options...
kylomas Posted April 23, 2013 Share Posted April 23, 2013 (edited) flabes, First some housekeeping: 1 - please use code tags to post code ([/autoit]) 2 - please post runnable code, where possible...you were missing the includes The _arraydisplay shows multiple rows with each row having multiple columns. This is a 2D array. Think of it like a spreadsheet. You can address each element of the array as: [autoit] $my_element = $my_array[0][3] where [0] is the row and [3] is the column within that row. There is an excellent tutorial on arrays in the Autoit WIKI. Good Luck, kylomas Edited April 23, 2013 by kylomas Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill Link to comment Share on other sites More sharing options...
flabes Posted April 24, 2013 Author Share Posted April 24, 2013 I understand topic 2 the scipt above scipt was from the Autoit sample but where or what is ([/autoit]) see Topic 1 pls help again - I do not do something agains the rule. regards First some housekeeping: 1 - please use code tags to post code ([autoit]) 2 - please post runnable code, where possible...you were missing the includes Link to comment Share on other sites More sharing options...
kylomas Posted April 24, 2013 Share Posted April 24, 2013 (edited) flabes, See the following #include <ie.au3> ; <------------------ I added this #include <array.au3> ; <------------------ I added this $oIE_table = _IE_Example ("table") $oTable = _IETableGetCollection ($oIE_table, 0) $aTableData = _IETableWriteToArray ($oTable, True) _ArrayDisplay($aTableData) $oIE_table.quit ; <------------------ added this to close the instance of IE ConsoleWrite('table row 1, column 4 = ' & $aTableData[0][3] & @LF) ; <------- this will display a cell within the array If you are using the full editor then there is a button for autoit code. I always use the basic edit and enclose the code in the BB codes [autoit][/autoit] because it keeps formatting. kylomas Edited April 24, 2013 by kylomas Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill 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