Created
June 28, 2012 21:03
-
-
Save ryancole/3013882 to your computer and use it in GitHub Desktop.
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
| 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