qwertylol Posted May 10, 2007 Share Posted May 10, 2007 #include <IE.au3> $oIE = _IE_Example ("basic") $oLinks = _IELinkGetCollection ($oIE) $iNumLinks = @extended MsgBox(0, "Link Info", $iNumLinks & " links found") For $oLink In $oLinks MsgBox(0, "Link Info", $oLink.href) Next I read _IELinkGetCollection but couldn't get it to work. how do I use it ? Link to comment Share on other sites More sharing options...
DaleHohm Posted May 10, 2007 Share Posted May 10, 2007 What does "couldn't get it to work" mean? Dale 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...
qwertylol Posted May 10, 2007 Author Share Posted May 10, 2007 What does "couldn't get it to work" mean? Dalehow do I enter the network link? I want it to extract URL links.and then I'll use ifinstring to parse it. Link to comment Share on other sites More sharing options...
DaleHohm Posted May 10, 2007 Share Posted May 10, 2007 I really have no idea what you mean unless you are looking for _IECreate? Dale 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...
Azazel Posted May 10, 2007 Share Posted May 10, 2007 (edited) I'm not sure i understand what you want but if you want to click for exemple on the third link this is a exemple : #include <IE.au3> $oIE = _IE_Example ("basic") $oLinks = _IELinkGetCollection ($oIE,-1) $iNumLinks = @extended Dim $link[@extended+1] MsgBox(0, "Link Info", $iNumLinks & " links found") $value=1 For $oLink In $oLinks MsgBox(0, "Link Info", $oLink.href) $link[$value]=$oLink.href $value=$value+1 Next _IENavigate($oIE,$link[3]) $link[1] contain the first link and so on... is it your question ? Aza Edited May 10, 2007 by Azazel Link to comment Share on other sites More sharing options...
qwertylol Posted May 10, 2007 Author Share Posted May 10, 2007 my question is: I have a webpage I want to extract links from, how? Link to comment Share on other sites More sharing options...
DaleHohm Posted May 10, 2007 Share Posted May 10, 2007 my question is: I have a webpage I want to extract links from, how?So with my suggestion of _IECreate and the example you cut and pasted from the helpfile you should have what you need.You have written two short sentences in this post and you have offered no detail or shown that you have made any effort to help yourself. You'll have a hard time in this forum with that approach and you won't get any more of my attention until you show taht you are working a bit harder.Dale 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...
qwertylol Posted May 10, 2007 Author Share Posted May 10, 2007 I'll improve upon those points. Thank you. 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