Skip to content

Instantly share code, notes, and snippets.

@ArtemGr
Last active December 25, 2019 16:56
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 ArtemGr/e99d3da9cc69e0cc53fb351e7ecb5b91 to your computer and use it in GitHub Desktop.
Save ArtemGr/e99d3da9cc69e0cc53fb351e7ecb5b91 to your computer and use it in GitHub Desktop.
Example automating the Cheat Happens editor with AutoHotkey
#If WinActive("Druidstone")
q::
MouseGetPos, mouseStartX, mouseStartY
if WinExist("Cheat Happens Trainer") {
WinActivate
WinMove, 600, 111
MouseMove, 210, 180, 5
MouseClick, Left
MouseMove, 900, 320, 5
MouseClick, Left
Sleep 99
Send ^a
Sleep 99
Send 9
Sleep 99
Send {Tab}
WinActivate, Druidstone
}
MouseMove, mouseStartX, mouseStartY, 2
Return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment