Skip to content

Instantly share code, notes, and snippets.

@gotunandan
Created June 13, 2014 09:15
Show Gist options
  • Save gotunandan/40121852126cf57cd9a7 to your computer and use it in GitHub Desktop.
Save gotunandan/40121852126cf57cd9a7 to your computer and use it in GitHub Desktop.
AutoItSetOption ("WinTitleMatchMode", 2 )
$window = "[CLASS:MozillaWindowClass]"
If not WinExists($window)=1 then;
MsgBox(64, "Not Running", "Firefox is not running")
Else
WinActivate($window)
Send("^l");; 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