Created
May 2, 2023 18:49
-
-
Save iceener/58c32ff0d77a9d8b01655a653be1983f to your computer and use it in GitHub Desktop.
This file contains 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
#If WinActive("ahk_exe msedge.exe") | |
^+y:: | |
Clipboard := "" | |
Send ^l | |
Sleep, 50 | |
Send ^c | |
ClipWait, 2 | |
if ErrorLevel | |
{ | |
MsgBox, Failed to copy URL. | |
return | |
} | |
URL := Clipboard | |
WinGetActiveTitle, title | |
Clipboard := "[" . title . "](" . URL . ")" | |
return | |
#If |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment