Created
June 8, 2015 13:45
-
-
Save DaneWeber/22c23f178501ac6fc6f7 to your computer and use it in GitHub Desktop.
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
#b:: ; Simulate typing of the text on the clipboard | |
KeyWait, LWin ; Ensure that the Windows key has been lifted. | |
KeyWait, RWin | |
ToPaste = %ClipBoard% ; Convert to text | |
Sleep 100 | |
StringReplace, ToPaste, ToPaste, `r`n, `n, All ; Prevent CR+LF from causing two newlines | |
Sleep 100 | |
SendRaw %ToPaste% ; SendRaw simulates typing the characters exactly, including AHK's special !^#+ characters | |
Return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment