3 ms·
I've had this in my AutoHotkey file for a long time now: ; Type in the clipboard ^!v:: MyClip = %clipboard% StringReplace, MyClip, MyClip, `r,
by banana_giraffe 5y ago
I've had this in my AutoHotkey file for a long time now:
; Type in the clipboard
^!v::
MyClip = %clipboard%
StringReplace, MyClip, MyClip, `r, , All
SendRaw %MyClip%
return
So I can hit Ctrl-Alt-V and have it type in whatever's in my clipboard. I use it to scrub the text and deal with stupid sites and forms that don't allow paste. I also have a variant that adds a Sleep so I can do the same thing when something like RDP takes control.
- wruza 5y agoArgh, if only AHK used some mainstream scripting language, at least in addition to its leetspeak. I will never learn it by practicing once in a year.
- banana_giraffe 5y agoAgreed. The little snippets in my AHK file are mostly magic incantations to me by now. AHK has a v2 that attempts to clean up its scripting language, but it's been in beta for a long time.