Skip to content

Instantly share code, notes, and snippets.

@JonDum
Created November 11, 2011 04:14
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JonDum/1357177 to your computer and use it in GitHub Desktop.
Save JonDum/1357177 to your computer and use it in GitHub Desktop.
Dungeon Defenders AFK script
;
; Usage: Save to a .ahk file
;
; Control+Shift+G to activate hitting G once a second
; Control+Alt+G to deactivate
; Control+C to close the script completely
;
active=0
Hotkey, ^+g, SpamG
Hotkey, ^!g, StopSpam
; Ctrl+C closes the app
^c::
MsgBox "Afk script closing..."
exitapp
return
SpamG:
active=0
Loop
{
if active
break
Send g
Sleep 1000
}
return
StopSpam:
if active
active=0
else
active++
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment