Valooounet Posted November 23, 2008 Share Posted November 23, 2008 Hi!I'd like to know if there is a function with Mozilla activeX control to get the url of the displayed page...Like this :But with something using a function (like $url = $firefox.GetUrl() )(I've already tested, it doesn't work )Thank you very much!!!! Link to comment Share on other sites More sharing options...
Valooounet Posted November 23, 2008 Author Share Posted November 23, 2008 I just fond it !!! sorry ! if this can help someone... just use : $url = firefox.locationUrl thank you! Link to comment Share on other sites More sharing options...
BrettF Posted November 23, 2008 Share Posted November 23, 2008 Hey There!Welcome to the forums.It may pay to check out this script.http://www.thorsten-willert.de/Themen/Auto...3/FF.au3/FF.au3Cheers,Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Valooounet Posted November 23, 2008 Author Share Posted November 23, 2008 Hey!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 :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 !!! Link to comment Share on other sites More sharing options...
Valooounet Posted December 5, 2008 Author Share Posted December 5, 2008 Nobody knows? Link to comment Share on other sites More sharing options...
FireFox Posted December 5, 2008 Share Posted December 5, 2008 (edited) Nobody knows? Hi, Check hotkeys for Firefox (for example new tab=ctrl+T) so url=Ctrl+... And copy url like this WinActivate([Class:MozillaWindowClass],"") WinWaitActive([Class:MozillaWindowClass],"",4) Send("^...");Hotkey url control Send("^A");Highlight url for copy Send("^C");Copy url Msgbox(64,"Url firefox","Firefox url : "&ClipGet()) Edited December 5, 2008 by FireFox Link to comment Share on other sites More sharing options...
Stilgar Posted December 6, 2008 Share Posted December 6, 2008 @Valooounet: 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") jEdit4AutoIt PlanMaker_UDF Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now