Jump to content

how to get in the script the current url of a web page displayed by the chrome browser - (Moved)


Go to solution Solved by OJBakker,

Recommended Posts

in my script I need to get the url value (string) displayed in the address bar of a chrome browser window that has the focus with winactive.
The page was opened outside the script.

Link to post
Share on other sites
  • Solution
ClipPut("") ; empty clipboard
                    Sleep(10)
                    Send("!d") ; alt-d to adressbar and select url
                    Sleep(10)
                    Send("^c") ; ctrl-c copy selected to clipboard
                    Sleep(10)
                    $sUrl = ClipGet() ; copy clipboard to variable

 

Link to post
Share on other sites
  • Moderators

Moved to the appropriate AutoIt General Help and Support forum, as the Developer General Discussion forum very clearly states:

Quote

General development and scripting discussions.


Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums.

Moderation Team

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...