Categories
Autohotkey

Autohotkey: Paste Plain Text

AutoHotkey Logo
AutoHotkey Logo

I discovered AutoHotkey a few months ago and i’ve become a huge fan.  Some parts of my jobs involve large numbers or repetitive keypresses or advance search and replaces and this tool helps me to cut down a huge amount on these.

At its simplest it’s a windows-wide macro ssystem, so you can replay recorded motions but it can be much more complex and can do far more.  I’m hoping to write a series of posts on this subject but, for now, here’s one small sample

This script will take formatted text (from work, webpages, etc, and paste it as plain text, something that I find very useful day by day:

Msgbox 0, Instructions, press win-v for a plain text paste
#v:: ;capture win-v keypress
clipboard = %clipboard% ;clear any formatting from the clipboard
send, {CTRLDOWN}v{CTRLUP} ;send normal paste command
return ;end the function

You can download a compiled version of this script so that you don’t have to have AutoHotkey installed.

Leave a Reply