Created
November 11, 2011 04:14
-
-
Save JonDum/1357177 to your computer and use it in GitHub Desktop.
Dungeon Defenders AFK script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; | |
; 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