Jump to content

Recommended Posts

Posted (edited)

How can I take the title of a link, just like the browsers does ? For example , as you know, all the tabs from the browser, have a name, based on what link is opened in them. So how can I take that name of a link with AutoIT and without the help of the browser ?

Edited by Rickname
Posted (edited)

Yes, the examples are the best methods to explain it better :

I uploaded the picture :post-78453-0-62370700-1391375658_thumb.j

That titles I want to extract, NOT EXACTLY THIS ONES , but any title from any link !

Edited by Rickname
Posted (edited)

have a look to all the _IE* function in the help

maybe the _IELinkGetCollection function can be of help for your case

when you have a reference to the link, use the .href property to "extract" the url of that link

(see the example in the help)

EDIT:

sorry, misunderstood your question
what you need should be the ".document.title" property
if you use IE try this as example:

#include <IE.au3>
$oIE = _IECreate("www.autoitscript.com")
MsgBox(0,"",$oIE.document.title)
Edited by PincoPanco

 

image.jpeg.9f1a974c98e9f77d824b358729b089b0.jpeg Chimp

small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

  • Solution
Posted

Great Information Danp2 ! I did what you said, and it worked :

So you just need to get the source of the webpage via this function : _IEDocReadHTML() , then extract the text that is enclosed between the <title> </title> tags !

Thats the name of the link !

Thankyou so much !

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
×
×
  • Create New...