; LINES THAT START WITH ; ARE COMMENTS AND IGNORED BY AUTOHOTKEY
;
;
; Simple Taeguk v1.0 -- An AutoHotKey script for Taeguk monks
; by /u/miragu
; Released to the Public Domain
;
; Based on SUNWUKOTRON v1.3 by /u/monkeyking7000
; http://www.reddit.com/r/Diablo3Monks/wiki/swk-autohotkey
;
;
; >>> WHAT IS THIS FOR? <<<
;
; This autohotkey script helps with refreshing Taeguk stacks by automatically
; casting Sweeping Wind every second. When using Inna's set with 6.60% RCR,
; SW is essentially free and can be spammed indefinitely.
;
; There is a "trick" to spam continuously using just the keyboard (set SW to
; a keypad number, hold it, press and release numlock) but there are two
; problems. First, not everyone has a keypad; and second, other keys can
; override the spamming, which happened to me with force move, prompting the
; development of this script.
;
; >>> HOW TO USE <<<
;
; Press [F1] to start spamming SW (key [4] by default). Press [F1] again
; to stop. Customize these keys below.
;
; >>> CUSTOMIZING <<<
;
; Change the values below to match your setup.
; SWToggleKey -- Key that toggles SW spamming on/off (Default "*F1", read:F1
; key with any modifier)
SWToggleKey := "*F1"
; SWKey -- Key press to send when spamming is active, set to your Sweeping
; Wind key (Default "4")
SWKey := "4"
; LoopIntervalMin -- Minimum time in milliseconds between loops (Default 1000)
; NOTE: Strongly recommended you do not set this below 100
LoopIntervalMin := 1000
; LoopIntervalMax -- Maximum time in milliseconds between loops (Default 1500)
LoopIntervalMax := 1500
; !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
; !!!!!! DO NOT CHANGE ANYTHING BELOW THIS LINE !!!!!
; !!!!!! CHANGE VALUES IN CUSTOMIZING SECTION ABOVE !!!!!
; !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
; Limit scope of all hotkeys below to Diablo3 window
#ifwinactive ahk_class D3 Main Window Class
Hotkey, IfWinActive, ahk_class D3 Main Window Class
GoSub, Init
Return
; Set everything up
Init:
_EnableSW := False
HotKey,%SWToggleKey%,ToggleSW
SetKeyDelay, 33, 0
Return
; SW enable/disable
ToggleSW:
_EnableSW := !_EnableSW
If _EnableSW {
SetTimer AutoLoop, On
}
Return
; The actual spam loop
AutoLoop:
While _EnableSW
{
If WinActive("ahk_class D3 Main Window Class")
{
Send %SWKey%
}
Random, random, %LoopIntervalMin%, %LoopIntervalMax%
Sleep %random%
}
Return
#ifwinactive