AutoHotkey : Copying without formatting
stephane
One of the common annoyances of copy-pasting on Windows is that it tries to copy-paste the formatting as well. This issue can easily be fixed by the following AutoHotkey macro, which will copy the selection to the clipboard as pure text.
;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copy without formatting
;;;;;;;;;;;;;;;;;;;;;;;;;;
^Ins::
Clipboard = ; Purge Clipboard content
Send ^{Ins} ; Send the Ctrl+Insert command
ClipWait ; Wait till data is present in the Clipboard
Clipboard = %clipboard% ;remove formatting
Return
That’s it. When hitting CTRL-Insert, the selection will be copied into the clipboard without formatting.
I am aware there are other ways around this problem, most stripping the formatting when pasting, but I had little success with them.
What are your favorite AutoHotkey hacks ?