Last active
March 9, 2021 05:31
-
-
Save jadient/783248 to your computer and use it in GitHub Desktop.
AutoHotKey script to paste text without formatting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; WindowsKey-V shortcut to paste text with no formatting | |
; (like Paste Special > Plain Text, but faster and works everywhere) | |
; for AutoHotKey | |
#v:: | |
ClipSaved := ClipboardAll | |
tempClipboard = %clipboard% | |
Clipboard = %tempClipboard% | |
SendPlay ^v | |
Clipboard := ClipSaved | |
; add an arbitrary delay to increase reliability for certain apps | |
Sleep 100 | |
return |
Glad you're still around after 10 years of posting it! Ha!
Percent signs still work, it's just considered the "legacy" version of variables.
Also, there is some type of bug between SendPlay and Microsoft Word. If I use SendPlay it doesn't work in word, just, nothing. But if I change it to Send, it works.
Not sure if that's an issue with Word 2019 or just Word period.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for your comment. I still use that code with the percent signs, need to go thru the documentation one of these days to see what else I'm missing. Like you, I found that a delay was needed, and I've updated the gist accordingly.