Sign in to follow this  
Followers 0
JazzDones

How to save URL into a variable?

7 posts in this topic

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.

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

#include <IE.au3>
Local $oIE = _IECreate("http://www.google.be/")
MsgBox(0,"URL", "Url = " & _IEPropertyGet($oIE, "locationurl"))

Edited by ileandros

I feel nothing.It feels great.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

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