Sign in to follow this  
Followers 0
stolie

_IELinkGetCollection and saving to txt file

5 posts in this topic

Hi, I have searched the forum and help files, and think i have just confused myself more. :)

Referring to _IELinkGetCollection, the help file example puts the links into a message box.

I would like to paste these to a text file or similiar.

I figure i need to somehow put these links into the clipboad and paste them.

Can someone please help me

Thanks in advance

Share this post


Link to post
Share on other sites



See FileOpen and FileWriteLine


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

Share this post


Link to post
Share on other sites

See FileOpen and FileWriteLine

Thanks for the reply Dale. I might not have explained myself clearly.

Im having problems with converting "$oLinks" to the clipboard. Is this a variable and how do i get these to the clipboard?

Ive bascially got this far....which really isnt that far lol

CODE
#include <IE.au3>

$oIE=_IECreate ("http://www.myurl.com)

$oLinks=_IELinkGetCollection ($oIE)

Run("notepad.exe")

WinWaitActive "Untitled - Notepad")

Cheers

Share this post


Link to post
Share on other sites

i'm sure you have read nothing ...

This from the help file with a Very Little modify

#include <IE.au3>
$oIE = _IECreate("google.com.vn")
$oLinks = _IELinkGetCollection ($oIE)
$iNumLinks = @extended
MsgBox(0, "Link Info", $iNumLinks & " links found")
For $oLink In $oLinks
    FileWriteLine("LinkLog.txt",$oLink.href)
Next

[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Share this post


Link to post
Share on other sites

i'm sure you have read nothing ...

This from the help file with a Very Little modify

#include <IE.au3>
$oIE = _IECreate("google.com.vn")
$oLinks = _IELinkGetCollection ($oIE)
$iNumLinks = @extended
MsgBox(0, "Link Info", $iNumLinks & " links found")
For $oLink In $oLinks
    FileWriteLine("LinkLog.txt",$oLink.href)
Next

D4rk, no need to get nasty. I have sat here and read the help file. For quite some time infact. Not all of us a Programmers by nature. I thought this was a help forum.

When Dale referred to "See FileOpen and FileWriteLine" i assumed he was referring to the Function Reference List help section, not the UDF file help of which i just located, and found the above example.

Regardless "thanks" for your reply.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0