Skip to content

Instantly share code, notes, and snippets.

@NixonInnes
Created September 6, 2017 20:29
Show Gist options
  • Save NixonInnes/6c77d9a0af00651890ba532fe3e32f6c to your computer and use it in GitHub Desktop.
Save NixonInnes/6c77d9a0af00651890ba532fe3e32f6c to your computer and use it in GitHub Desktop.
Diablo III Autocast Autohotkey Script
; This is an AutoHotKey script designed to be used with Diablo III
; Pressing F1 will constantly activate skill 1, F2 will activate skill 2, F3 for 3, and F4 for 4
; The keys are togglable.
Thread, interrupt, 0
togF1 := 0
$F1::
togF1 := !togF1
if (togF1) {
SetTimer, RepeatOne
}
else {
SetTimer, RepeatOne, Off
}
return
RepeatOne:
Send {1}
return
togF2 := 0
$F2::
togF2 := !togF2
if (togF2) {
SetTimer, RepeatTwo
}
else {
SetTimer, RepeatTwo, Off
}
return
RepeatTwo:
Send {2}
return
togF3 := 0
$F3::
togF3 := !togF3
if (togF3) {
SetTimer, RepeatThree
}
else {
SetTimer, RepeatThree, Off
}
return
RepeatThree:
Send {3}
return
togF4 := 0
$F4::
togF4 := !togF2
if (togF4) {
SetTimer, RepeatFour
}
else {
SetTimer, RepeatFour, Off
}
return
RepeatFour:
Send {4}
return
@mefhis
Copy link

mefhis commented Oct 4, 2018

102/5000
Hello friend, thanks for the script, in the F4 line you have an error, when you deactivate redirect to F2.

Hola amigo gracias por el script, en la linea del F4 tienes un error, al desactivar redirecionas a F2.

@wbq3510
Copy link

wbq3510 commented Mar 9, 2023

Thanks. work.
ps.
"togF4 := !togF2" should be "togF4 := !togF4"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment