Jump to content

How to get Url


 Share

Recommended Posts

Hi

how to get url from other browsers like Mozilla firefox i know how to get from IE and read them like

$title = WinGetTitle(" Microsoft Internet Explorer" ,"")
$len =  StringTrimRight($title, 30)
MsgBox(0, "Full title read was:", $len)
$oIE = _IEAttach($len)
MsgBox(0, "The URL", _IEPropertyGet ($oIE, "locationurl"))
$sTexts = _IEBodyReadText ($oIE)
MsgBox(0, "", $sTexts)

any better way to get url from other browsers and read that page ?

Edited by autoitxp
Link to comment
Share on other sites

Hi

how to get url from other browsers like Mozilla firefox i know how to get from IE and read them like

$title = WinGetTitle(" Microsoft Internet Explorer" ,"")
$len =  StringTrimRight($title, 30)
MsgBox(0, "Full title read was:", $len)
$oIE = _IEAttach($len)
MsgBox(0, "The URL", _IEPropertyGet ($oIE, "locationurl"))
$sTexts = _IEBodyReadText ($oIE)
MsgBox(0, "", $sTexts)

any better way to get url from other browsers and read that page ?

I don't know that this can be done with autoit. It uses objects not exposed by firefox . . . yada yada yada
Link to comment
Share on other sites

Sure this can be done using autoit but just a little differently (Old School Way)...

1. Activate the Firfox window.

2. Send Ctrl + L

3. Copy to clipboard (ClipPut)

Then you can do whatever you want with the URL.

Note: You will need to have the "Navigation Toolbar" viewable.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...