Skip to content

Instantly share code, notes, and snippets.

@0racle
Last active December 14, 2016 22:17
Show Gist options
  • Save 0racle/9da9c2a6c76a2c3b199ed0a7b6624f5a to your computer and use it in GitHub Desktop.
Save 0racle/9da9c2a6c76a2c3b199ed0a7b6624f5a to your computer and use it in GitHub Desktop.
StrReplace.ahk
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