Skip to content

Instantly share code, notes, and snippets.

@gotunandan
Created June 13, 2014 09:08
Show Gist options
  • Select an option

  • Save gotunandan/fb9b54e230e2d8c0fe13 to your computer and use it in GitHub Desktop.

Select an option

Save gotunandan/fb9b54e230e2d8c0fe13 to your computer and use it in GitHub Desktop.
AutoItSetOption ("WinTitleMatchMode", 2 )
$window = "[CLASS:IEFrame]"
If not WinExists($window)=1 then;
MsgBox(64, "Not Running", "Internet Explorer is not running")
Else
WinActivate($window)
Send("!D");; selects the address bar contents
Send("^c");; copies it to the clipboard
$fullurl = ClipGet()
MsgBox(0, "Result", $fullurl)
EndIf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment