Created
June 13, 2014 09:15
-
-
Save gotunandan/40121852126cf57cd9a7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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