Skip to content

Instantly share code, notes, and snippets.

@ryancole
Created June 28, 2012 21:03
Show Gist options
  • Select an option

  • Save ryancole/3013882 to your computer and use it in GitHub Desktop.

Select an option

Save ryancole/3013882 to your computer and use it in GitHub Desktop.
Global $active
; set hotkeys
HotKeySet("q", "SendKeys")
HotKeySet("w", "ToggleActive")
; start script
InfiniteLoop()
Func SendKeys()
If WinActive("Diablo III") Then
If $active Then
Send("Q")
Sleep(1)
Send("W")
Sleep(1)
Send("E")
Sleep(1)
Send("R")
Sleep(1)
EndIf
EndIf
EndFunc
Func InfiniteLoop()
; default to inactive
$active = False
While 1
Sleep(100)
WEnd
EndFunc
Func ToggleActive()
If WinActive("Diablo III") Then
$active = NOT $active
MsgBox(64+262144, "Spammer", $active, 1)
EndIf
EndFunc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment