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
10/27/06 @ 01:59 PM

Hi

I'm Jim Biancolo, and this is stuff I found interesting that I thought you might like too. Here are some of my favorites if you want to start there. Mostly I link to other people, but some stuff is mine, like:

Spillover

I am loving Instapaper, and use if to sock away stuff to read. Here are a bunch of articles I read recently and liked.

Archives

Subscribe

Here are the RSS feeds for this site, my Instapaper reading list, and my Instapaper favorites.

"RSS? What in the blazes are you carryin' on about, boy?"

If you prefer, enter your address below to get updates via e-mail. Powered by Feed My Inbox (they have a good privacy policy).