Jump to content
Sign in to follow this  
czmaster

Get Clipboard HTML data

Recommended Posts

czmaster

Hello,

If I copy a link on a web page (i.e. : autoit) the ClipGet function return the text of this link (autoit) bur not the url (http://www.autoitscript.com/forum).

Is it a way to get this link ?

MS Word do it, when you paste a link from a web page, it show it as a link (autoit and not autoit as text).

Thank you

Edited by czmaster

Share this post


Link to post
Share on other sites
computergroove

I didnt see anything in the Autoit Functions list for this so I will propose something.

Firefox:

You could have autoit open the link in a new window.

Send CTRL + L to highlight the address bars URL

Send CTRL + C to copy

Then Close the new window (ALT + F and the 'X')


Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html

Share this post


Link to post
Share on other sites
somdcomputerguy

I guess it depends on how you get it. If I right-click on that link, my browser (Firefox) will give me the option to 'Copy Link Location'. Then ClipGet() will have the anchor data instead of the text data.


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
czmaster

@computergroove

I don't want to copy the adress bar link but a link in the web page

@somdcomputerguy

I know the option to 'Copy Link Location' and I use it often, but this time I want to get the link location of many links with just one copy,

Thanks anyway.

It is probably impossible with autoit. I will copy the source code and get the links with the string functions

Edited by czmaster

Share this post


Link to post
Share on other sites
somdcomputerguy

This function, _IELinkGetCollection, may prove useful to you.


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
computergroove

@computergroove

I don't want to copy the adress bar link but a link in the web page

I said have the link open in another window ie right click the link and open in new window first.


Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html

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  

×