the following code is supposed to
1. Copy what is currently highlighted
2. Copy the current link in the browser.
However, even when going back in the clipboard history (e.g. with Win+V), only the link is shown but not the text when using this script:
Code: Select all
NumpadMult:: ;Copies the currently selected content and afterwards the current URL (works in Chrome and Firefox)
Clipboard := ""
send ^c
Send {Ctrl up}
ClipWait,2
Send ^l ;gives focus to the URL
Send {Ctrl up}
clipboard = ; Start off empty to allow ClipWait to detect when the text has arrived.
Send ^c
Send {Ctrl up}
ClipWait ; Wait for the clipboard to contain text.
return