Skip to content

Instantly share code, notes, and snippets.

@itpropro
Created February 10, 2019 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itpropro/f1529c7bb7dd79a914c36f4d8e25d9c5 to your computer and use it in GitHub Desktop.
Save itpropro/f1529c7bb7dd79a914c36f4d8e25d9c5 to your computer and use it in GitHub Desktop.
Example script, how to implement small (and of course slow) buteforce scripts with autohotkey
SendMode Input
!z::
loop 26 {
i := Asc("a") + A_Index - 1
loop 26 {
j := Asc("a") + A_Index - 1
loop 26 {
k := Asc("a") + A_Index - 1
l := Chr(i)
m := Chr(j)
n := Chr(k)
Send, {%l% down}{%m% down}{%n% down}
Sleep, 10
Send, {%l% up}{%m% up}{%n% up}
If GetKeyState("Esc")
ExitApp
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment