joeloyzaga 0 Posted April 25, 2013 the code below is hoping to load a page and then output all the objects by tagname Case $commandfound = "Launch Url" $Urltoload = StringTrimleft($aSheetData[$iRow][$iCol],StringInStr($aSheetData[$iRow][$iCol],"|") ) $oTest.NewBrowser($sBrowser,$Urltoload) $oTest.Browser.start Local $oElements1 = _IETagNameAllGetCollection($oTest) For $oElementa In $oElements1 MsgBox(0, "Element Info", "Tagname: " & $oElementa.tagname & @CR & "innerText: " & $oElementa.innerText) Next _open("/") _windowMaximize() _waitForPageToLoad("30") Share this post Link to post Share on other sites
PhoenixXL 168 Posted April 26, 2013 (edited) So what is the problem? The posted code can't be examined until all the functions and definitions are with us. Please post the full script(or a reproducer if the script is too large) and specify the problem. Edited April 26, 2013 by PhoenixXL My code:PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners. MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression. Share this post Link to post Share on other sites
joeloyzaga 0 Posted April 26, 2013 (edited) so how would it work when using the google front page? if you use the example Local $oIE = _IE_Example("basic") Local $oLinks = _IELinkGetCollection($oIE) Local $iNumLinks = @extended MsgBox(0, "Link Info", $iNumLinks & " links found") For $oLink In $oLinks MsgBox(0, "Link Info", $oLink.href) Next what would it be when you use http://www.google.com instead of _IE_Example("basic") Edited April 26, 2013 by joeloyzaga Share this post Link to post Share on other sites
PhoenixXL 168 Posted April 26, 2013 (edited) Example#include <IE.au3> $oIE = _IECreate("https://www.google.co.in/", 0, 0) ;Make it hidden $oTagNames = _IETagNameAllGetCollection($oIE) MsgBox(64, "Info", "Total Tags " & @extended) ;String Format is used to make the width of the tagname 6 and truncate the inner-text to 40chars succedding them with three periods(.) For $oTagName In $oTagNames ConsoleWrite(StringFormat("TagName : %6s\tinner-Text : %.40s...\r\n" , $oTagName.tagName , $oTagName.innerText)) Next After seeing your edit#include <IE.au3> $oIE = _IECreate("https://www.google.co.in/", 0, 0) $oLinks = _IELinkGetCollection($oIE) $iNumLinks = @extended MsgBox(0, "Link Info", $iNumLinks & " links found") For $oLink In $oLinks ConsoleWrite(StringFormat("Link Info : %.40s...\n", $oLink.href)) ;String Format is used to truncate the link to 40 chars. Next Regards Edited April 26, 2013 by PhoenixXL My code:PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners. MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression. Share this post Link to post Share on other sites
joeloyzaga 0 Posted April 26, 2013 Is there a way to highlight the objects being displayed- highlight on the browser? Share this post Link to post Share on other sites
PhoenixXL 168 Posted April 26, 2013 Check _IEDocInsertHTML, you can thereafter create a class using the style tag. Change the classname property of any object to show up the attributes mentioned in the class. My code:PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners. MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression. Share this post Link to post Share on other sites