JazzDones Posted December 10, 2012 Share Posted December 10, 2012 Hi,Is it possible to parse a URL value from IE explorer and save it into a variable? Is WinGetText the correct function for this? Please advise. Thanks. Link to comment Share on other sites More sharing options...
PhoenixXL Posted December 10, 2012 Share Posted December 10, 2012 use _IEPropertyGet My code: PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners. MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression. Link to comment Share on other sites More sharing options...
Blue_Drache Posted December 10, 2012 Share Posted December 10, 2012 If you feel like using a regular expression to nab the correct URL from the massive dump of text that you'll receive ... then yes.Of course, taking a look at the _IE* functions in the help file would probably yield you better results. Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
ileandros Posted December 10, 2012 Share Posted December 10, 2012 (edited) #include <IE.au3> Local $oIE = _IECreate("http://www.google.be/") MsgBox(0,"URL", "Url = " & _IEPropertyGet($oIE, "locationurl")) Edited December 10, 2012 by ileandros I feel nothing.It feels great. Link to comment Share on other sites More sharing options...
EmptySpace Posted December 10, 2012 Share Posted December 10, 2012 #include <IE.au3> $oIE = _IECreate("www.google.com") $url = $oie.document.url MsgBox(0,"",$url) Link to comment Share on other sites More sharing options...
JazzDones Posted December 11, 2012 Author Share Posted December 11, 2012 Thanks for the replies guys. Is it possible to retrieve a url value from a website and save it to a variable without opening the actual site? For example, I want to get the url value on the "Image" hyperlink of "www.google.com". I am planning to use InetGet() function for downloading a file from a website that has dynamic URLs Thanks. Link to comment Share on other sites More sharing options...
ileandros Posted December 11, 2012 Share Posted December 11, 2012 No it is not if the site is not opened but you can make it invisible. Check the 3rd parameter of the _IECreate function. Setting it to 0 can run it invisible I feel nothing.It feels great. 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