Skip to content

Instantly share code, notes, and snippets.

@extramaster
Created April 27, 2013 03:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save extramaster/5471790 to your computer and use it in GitHub Desktop.
Save extramaster/5471790 to your computer and use it in GitHub Desktop.
Autohotkey random text spammer
Rand( a=0.0, b=1 ) {
IfEqual,a,,Random,,% r := b = 1 ? Rand(0,0xFFFFFFFF) : b
Else Random,r,a,b
Return r
}
Loop {
if GetKeyState("Capslock", "T")=false{
Random, charvar, 97, 122
Send % Chr(charvar)
if Rand()>0.9{
Sleep, 10
Send, {ENTER}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment