Created
February 20, 2020 23:04
-
-
Save samr7/af684dcb3cdfa261f72d1d172f9f79b8 to your computer and use it in GitHub Desktop.
Auto Hot Key typing simulator (ctrl-shift-V to pretend to type clipboard)
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
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
#NoTrayIcon ; Hide the tray icon | |
SlowType(str) { | |
len := StrLen(str) | |
Loop, %len% { | |
xchar := SubStr(str, A_Index, 1) | |
if (xchar == chr(13)) { | |
continue | |
} | |
last := char | |
char := xchar | |
SendRaw %char% | |
if (char == chr(10) && last == chr(10)) { | |
Sleep, 750 | |
} | |
if (char == chr(32)) { | |
Sleep 100 | |
} | |
Random, rand, 10, 100 | |
Sleep, rand | |
} | |
} | |
^+v::SlowType(Clipboard) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment