Last active
December 14, 2016 22:17
-
-
Save 0racle/9da9c2a6c76a2c3b199ed0a7b6624f5a to your computer and use it in GitHub Desktop.
StrReplace.ahk
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
SetKeyDelay -1 ; Makes SendRaw faster | |
F7:: | |
ClipStore = %Clipboard% ; Save the current Clipboard | |
SendInput ^a^c ; Copy all text in current field | |
Output := StrReplace(Clipboard, "\", "\\") ; Replace "\" with "\\" | |
SendRaw %Output% ; Send the output | |
Clipboard = %ClipStore% : Restore original Clipboard | |
Return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment