Code: Select all
;Paste without formatting
; Source:
; https://www.howtogeek.com/186723/ask-htg-how-can-i-paste-text-without-the-formatting/
; CTRL+SHIFT+V
$^+v::ReplaceText_PasterWithoutFormatting()
ReplaceText_PasterWithoutFormatting()
{
ToolTip, Paste w/o formatting...
clipSaved := ClipboardAll ; Save clipboard content
Clipboard = %Clipboard% ; Will remove formatting
Sleep, 100 ; Wait for Clipboard to update
Send ^v ; Paste
Clipboard := clipSaved ; Recover clipboard
Sleep, 200
ToolTip
Return
}
But compiled version of this code doesn't work.
Bug?.. =)