Diablo Smash v1
Posted: 06 Feb 2020, 17:46
So I was bored and decided to play some Diablo 3 which prompted digging up this little tool for the game. Is really helpful
with keeping the hand and wrist strain down in that insanely clicky game. Really this could be pretty generally applied to
any game that requires regular button mashing.
Controls are explained in the comments.
with keeping the hand and wrist strain down in that insanely clicky game. Really this could be pretty generally applied to
any game that requires regular button mashing.
Controls are explained in the comments.
Code: Select all
;Script created by Ruevil
;2018-03-25
#IfWinActive, Diablo III ;Make sure key smashing only works inside the game
SetTimer, Smash, 1000 ;Interval to smash keys, lower this number to smash faster
ent := 1 ;Set state of Enter key variable for stopping smash while chatting
^1::t1 := !t1 ;Ctrl+1 through Ctrl+4 turn on and off smashing for the
^2::t2 := !t2 ;corresponding spell 1-4.
^3::t3 := !t3
^4::t4 := !t4
~t:: ;Turn off smashing when town portal is activated
t1 := 0, t2 := 0, t3 := 0, t4 := 0
Return
~Enter:: ;Pause smashing for typing into the chat
If ent ;(first press) - Save state to temp var and turn off skills
t1t := t1, t1 := 0, t2t := t2, t2 := 0, t3t := t3, t3 := 0, t4t := t4, t4 := 0
Else ;(second press) - reset state from temp vars and set temps to zero
t1 := t1t, t1t := 0, t2 := t2t, t2t := 0, t3 := t3t, t3t := 0, t4 := t4t, t4t := 0
ent := !ent ;Toggle state variable
return
Smash: ;Timer for smashing keys
If t1
Send 1
If t2
Send 2
If t3
Send 3
If t4
Send 4
Return
/*
~LButton:: ;Uncomment this to turn left click into a 'hold down' instead of furiously clicking, I prefer the scroll trick
;as this makes it very difficult to click some npcs, change gear, etc...
While GetKeyState("LButton", "P") && WinActive("Diablo III")
{
MouseClick
Sleep, 75
}
return
*/