viewing paste Unknown #9056 | Autohotkey

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
; dont touch these
SetKeyDelay -1,-1,-1
 
;simple delays, likely dont have to touch these
aspdDelay := 250
gearChangeDelay := 150
foodDelay := 3000
 
 
; hotkeys for what you want to do
; SPECIAL NOTE: if they use an F key, they should be simply "F1" for example
 
hkChBuff            := "$q"
hkChSight           := "$s"
hkChBodyRelo        := "$d"
hkChFIST            := "$f"
 
; SPECIAL NOTE: if the following use an F key, they should be bracketed, "{F1}" for example
 
; gears
hkGrDiablosRing     := "m"
hkGrBattleClub      := ","
hkGrCecilFist       := "."
 
; items
hkItBoxOfGloom      := "j"
hkItBoxOfResentment := "k"
hkItRuneCake        := "l"
 
;skills
hkSkSight           := "s"
hkSkBodyRelo        := "n"
hkSkFIST            := "{F9}"
   
Home::
{
    WinGet thisPID, PID, A
   
    Hotkey IfWinActive, ahk_pid %thisPID%
    Hotkey %hkChSight%, Sight
    Hotkey %hkChBodyRelo%, BodyRelo
    Hotkey %hkChFIST%, FIST
   
    Return
}
 
Sight:
{
    Sleep %aspdDelay%
    ControlSend ,,%hkGrDiablosRing%, ahk_pid %thisPID%
    Sleep %gearChangeDelay%
    ControlSend ,,%hkSkSight%, ahk_pid %thisPID%
    Sleep %aspdDelay%
    ControlSend ,,%hkGrDiablosRing%, ahk_pid %thisPID%
}
 
BodyRelo:
{
    Sleep %aspdDelay%
    ControlSend ,,%hkGrCecilFist%, ahk_pid %thisPID%
    Sleep %gearChangeDelay%
    ControlSend ,,%hkSkBodyRelo%, ahk_pid %thisPID%
}
 
FIST:
{
    Sleep %aspdDelay%
    ControlSend ,,%hkGrBattleClub%, ahk_pid %thisPID%
    Sleep %gearChangeDelay%
    ControlSend ,,%hkSkFIST%, ahk_pid %thisPID%
}
 
End::Suspend
Viewed 325 times, submitted by unknown.