Sign in to follow this  
Followers 0
gemlik

Active web address

4 posts in this topic

Hello all AutoIt crafts,

How can read active web pages url address?

Please simple example script.

Thank you from now.

--gemlik

Share this post


Link to post
Share on other sites



Hello all AutoIt crafts,

How can read active web pages url address?

Please simple example script.

Thank you from now.

--gemlik

<{POST_SNAPBACK}>

This isnt where you would normally post a support question, but I can understand why you posted here.

Below is a script that will grab the text... keep in mind that Firefox or another browser will have to be active for this to work.

Send("!d")
Send("^c")

The above code will put the active web page's url into the clipboard. You can use ClipGet() to retrieve it for your code.

JS


AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Share this post


Link to post
Share on other sites

Thats probably the most accurate way you can do it atm. The only problem I see is that you might type something in the address bar but not hit 'enter' or click 'go' or whatever, loading the page. Meaning that the text you retrieve has a slight chance that it might not be the current page...


[u]Old Projects:[/u]A3MORGB2Hex[u]Old Functions:[/u]_TimeAdd/_TimeSub_AddComma_BubbleSort _RippleSort "He who does not understand your silence will probably not understand your words." - Elbert Hubbard.

Share this post


Link to post
Share on other sites

Thats probably the most accurate way you can do it atm. The only problem I see is that you might type something in the address bar but not hit 'enter' or click 'go' or whatever, loading the page. Meaning that the text you retrieve has a slight chance that it might not be the current page...

<{POST_SNAPBACK}>

That being the case you can always do...

Send("{F5}")

Before the rest :).

JS


AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

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