Jump to content

Active web address


gemlik
 Share

Recommended Posts

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)

Link to comment
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...

qq

Link to comment
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)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...