aleksandrovich Posted July 17, 2012 Share Posted July 17, 2012 Hello, there is a table <table cellspacing="0" cellpadding="5"> <tr> <td class="tsrsbsls"><b>Data</b></td> <td class="tsrsbsls"><b>No.</b></td> <td class="tsrsbsls"><b>sum1</b></td> <td class="tsrsbsls"><b>sum2</b></td> <td class="tsrsbsls"><b>WM</b></td> <td class="tsrsbsls"><b>status</b></td> </tr> <tr> <td class="tsrsbsls" align="center">01.01.2012 20:00</td> <td class="tsrsbsls" align="center">57277</td> <td class="tsrsbsls" align="right">100500.00</td> <td class="tsrsbsls" align="right">100500.00</td> <td class="tsrsbsls" align="center">R0123456789</td> <td class="tsrsbsls" align="center">canceled</td> </tr> ..then another 100 rows..that did not interest me.. first line - is the title, I do not need need a second line, the last cell in the table (the text in it can be different), how to tear? As a result of a.. MsgBox(16, "Status:", $status) Link to comment Share on other sites More sharing options...
jdelaney Posted July 17, 2012 Share Posted July 17, 2012 look into these: _IETableGetCollection _IETableWriteToArray IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
DicatoroftheUSA Posted July 17, 2012 Share Posted July 17, 2012 (edited) With the example you gave, the following should work, its lighter weight than messing around with _ie functions. $aResult=stringregexp($sSource,'<td class="tsrsbsls" align="center">(.*)</td>',3) MsgBox(16, "Status:", $aResult[ubound($aResult)-1) Edited July 17, 2012 by DicatoroftheUSA Statism is violence, Taxation is theft. Autoit Wiki Link to comment Share on other sites More sharing options...
DaleHohm Posted July 17, 2012 Share Posted July 17, 2012 What does "lighter weight" mean, exactly? 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...
DicatoroftheUSA Posted July 18, 2012 Share Posted July 18, 2012 (edited) What does "lighter weight" mean, exactly?Are you being facetious? Its not an uncommon term.Faster, uses less memory. Less abitrary and or unescessary logical steps. Not bloated. Like notepad vs MS Office Edited July 18, 2012 by DicatoroftheUSA Statism is violence, Taxation is theft. Autoit Wiki Link to comment Share on other sites More sharing options...
aleksandrovich Posted July 18, 2012 Author Share Posted July 18, 2012 sorry, a little easier the task as interested only in the second line of the last cell, but only if it contains the text "completed" - take for example msgbox, ! but do not pay attention to the line and below the cell, they can also present this text PS need it _ie Link to comment Share on other sites More sharing options...
DaleHohm Posted July 18, 2012 Share Posted July 18, 2012 (edited) PS need it _ieLook at the functions that @jdelaney suggests - it will place the value you are interested in into a unique array element. Try it and if you have trouble, post your code.Dale Edited July 18, 2012 by DaleHohm 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