Paste Unformatted Text with AutoHotKey
Another quick AutoHotKey script:
#v:: ; Win-V hotkey
clipboard := clipboard
Send, ^v
return
This converts whatever's on the clipboard to plain text (no formatting) and then pastes. I use this all the time when copying some text from a web page to Word because I often don't want the formatting to tag along. I chose Win-V because Ctrl-V is the normal paste shortcut.
Interesting side effect: if you copy a file or folder in Explorer and then use Win-V to paste it, it's path is pasted as text. Also handy.
UPDATE: ruddym contributed this version, which is almost certainly better reliable. Mine hadn't given me any trouble, but his looks more robust, and I've been using it for months. Thanks ruddym!
#v::
Clip0 = %ClipBoardAll%
ClipBoard = %ClipBoard% ; Convert to text
Send ^v ; For best compatibility: SendPlay
Sleep 50 ; Don't change clipboard while it is pasted! (Sleep > 0)
ClipBoard = %Clip0% ; Restore original ClipBoard
VarSetCapacity(Clip0, 0) ; Free memory
Return
Fri, Oct 27, 2006