Sign in to follow this  
Followers 0
oMBRa

find out the current url from a browser

15 posts in this topic

How to find out the current url from a broswer?

Share this post


Link to post
Share on other sites



_IEPropertyGet "locationurl"


Support bacteria; it's the only culture most people have.LxP's Learning to Script with AutoIt 3 - Excellent starting placeVolly's Links Page - Links to cool and useful scriptsAutoIt Wrappers - Valuater's AutoIt Wrappers post. Lots of good stuff.Support AutoIt - Make a donation here; I did.[size="2"]#include <Guinness.pint>[/size]

Share this post


Link to post
Share on other sites

it dosnt work also for firefox and other browser

Share this post


Link to post
Share on other sites

think you just need to get the control name...

or find the text in the window if it has a url in it :)

regards


Some Projects:[list][*]ZIP UDF using no external files[*]iPod Music Transfer [*]iTunes UDF - fully integrate iTunes with au3[*]iTunes info (taskbar player hover)[*]Instant Run - run scripts without saving them before :)[*]Get Tube - YouTube Downloader[*]Lyric Finder 2 - Find Lyrics to any of your song[*]DeskBox - A Desktop Extension Tool[/list]indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org

Share this post


Link to post
Share on other sites

I tried WinGetText, ControlGetText... but they return error

Share this post


Link to post
Share on other sites

I meant getting the control name for each browser you are interested in and get the text

the control you need is the inner one 'cause usually browsers overlap combos and textboxes

hope it works :)

regards


Some Projects:[list][*]ZIP UDF using no external files[*]iPod Music Transfer [*]iTunes UDF - fully integrate iTunes with au3[*]iTunes info (taskbar player hover)[*]Instant Run - run scripts without saving them before :)[*]Get Tube - YouTube Downloader[*]Lyric Finder 2 - Find Lyrics to any of your song[*]DeskBox - A Desktop Extension Tool[/list]indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org

Share this post


Link to post
Share on other sites

I didnt find nothing, becouse I have not much time... Can u give me direct link?

Share this post


Link to post
Share on other sites

it dosnt work also for firefox and other browser

You could try something like this:

Send("^l"); In FF puts focus on url field.
Send("^c"); Copy the contents of the field to clipboard.
$url=ClipGet(); Read the text from clipboard.

-Barry.

Share this post


Link to post
Share on other sites

Where I get FF.au3?

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites

With the FF.au3 in FireFox:

$url = _FFSetGet($Socket,".location.href")

 

How to do with the new version of FF.au3 ?

Share this post


Link to post
Share on other sites

1) Please don't necro-post. Next time start a new thread and you can post a link back to this one if you so desire.

2) Try _FFCmd(".location.href")

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