Skip to content

Instantly share code, notes, and snippets.

@skartknet
Created October 22, 2019 21:53
Show Gist options
  • Save skartknet/3b32fa7ba4266426cc8a1e55529924d5 to your computer and use it in GitHub Desktop.
Save skartknet/3b32fa7ba4266426cc8a1e55529924d5 to your computer and use it in GitHub Desktop.
It paste the clipboard content as if you were actually typing, with a delay between strokes. I find it useful to create coding tutorials and not to worry about typos.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Event ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
^+v::
FixString = {Raw}%Clipboard%
Send % sendAtRandom(FixString)
sendAtRandom(string) {
Loop, parse, string
{
Send % A_LoopField
Random, t, 20, 120
Sleep, %t%
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment