First, here is my script:
Code: Select all
; Run Youtube-dl program
NumpadSub::
clipboard := ""
Click Right ; invokes the right click context menu
Sleep, 500
Send, {l} ; this copies the hyperlink under the mouse cursor
ClipWait, 1
clipboard := "youtube-dl.exe " clipboard
WinActivate, AHK_class ConsoleWindowClass
Sleep, 500
Send, %clipboard%{Enter}
Return
There is nothing with this script. However, there are times when I want to grab multiple links as I scroll down a particular webpage. So what I would like to change in the script is every time I press the hotkey
NumpadSub, copy whatever link is under the mouse cursor, and then every time I press the same hotkey, add the 2nd hyperlink and 3rd hyperlink (and so & so forth) WITHOUT deleting the 1st hyperlink and add a space in between each link. I will manually move the mouse cursor to the appropriate spot on the webpage. I just need the hotkey to continually add the hyperlink to clipboard memory content.
For example: youtube-dl.exe https:\\
www.abc.com https:\\
www.def.com https:\\
www.ghi.com https:\\
www.jkl.com
And finally when I press the combo hotkey
Shift +
NumpadSub - paste the clipboard contents into the command console window.
Is this possible?