Jump to content
Sign in to follow this  

Mozilla ActiveX Control ==> Get Url ?

Recommended Posts



I'd like to know if there is a function with Mozilla activeX control to get the url of the displayed page...

Like this :

Posted Image

But with something using a function (like $url = $firefox.GetUrl() )(I've already tested, it doesn't work :) )

Thank you very much!!!!

Share this post

Link to post
Share on other sites

I just fond it !!!

sorry ! :) if this can help someone...

just use :

$url = firefox.locationUrl

thank you!

Share this post

Link to post
Share on other sites


Thank you BrettF !

But I don't think this script will help me much because it opens a new Firefox window... And in my script, the firefox control is "integrated" in my main script window :)

(sorry for my english :) )

I have an other problem :

locationUrl doesn't works...

When I go on http://www.ogame.fr, and I connect, the real url is :

Posted ImagePosted Image

But locationUrl only returns : http://www.ogame.fr/

In the "real" Firefox window (not the one of the script), we also just see "http://www.ogame.fr/"...

I'd like to get the entire url...

Can you help me? thanks !!!

Share this post

Link to post
Share on other sites

Nobody knows? :)


Check hotkeys for Firefox (for example new tab=ctrl+T)

so url=Ctrl+...

And copy url like this

Send("^...");Hotkey url control
Send("^A");Highlight url for copy
Send("^C");Copy url

Msgbox(64,"Url firefox","Firefox url : "&ClipGet())
Edited by FireFox


OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control


Share this post

Link to post
Share on other sites


The FF.au3 doesn't open a new window if you connect to a running FireFox. (_FFConnect)

So you can get the current url with:

$Socket = _FFConnect()
$url = _FFSetGet($Socket,".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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.