Skip to content

Instantly share code, notes, and snippets.

@JonDum JonDum/dd-afk.ahk
Created Nov 11, 2011

Embed
What would you like to do?
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
You can’t perform that action at this time.