|
@ -12,14 +12,18 @@ WrapperWindow:="Deep Rock Galactic " |
|
|
#Include "../lib/Wrapper.ahk" |
|
|
#Include "../lib/Wrapper.ahk" |
|
|
|
|
|
|
|
|
; Initialize variables |
|
|
; Initialize variables |
|
|
FullAutoEnabled := [0,0,0,0] |
|
|
FullAutoEnabled := [0,0,0,0,1] |
|
|
EquipState := 1 |
|
|
EquipState := 1 |
|
|
|
|
|
|
|
|
ToggleFullAuto(Index) { |
|
|
ToggleFullAuto(Index) { |
|
|
global FullAutoEnabled |
|
|
global FullAutoEnabled |
|
|
FullAutoEnabled[Index] := !FullAutoEnabled[Index] |
|
|
FullAutoEnabled[Index] := !FullAutoEnabled[Index] |
|
|
EnabledDisabled := (FullAutoEnabled[Index] ? "enabled" : "disabled") |
|
|
EnabledDisabled := (FullAutoEnabled[Index] ? "enabled" : "disabled") |
|
|
|
|
|
if (Index < 5) { |
|
|
ToolTip "Full Auto " EnabledDisabled " for " Index, A_ScreenWidth // 2, A_ScreenHeight // 2 |
|
|
ToolTip "Full Auto " EnabledDisabled " for " Index, A_ScreenWidth // 2, A_ScreenHeight // 2 |
|
|
|
|
|
} else { |
|
|
|
|
|
ToolTip "Extra macros " EnabledDisabled, A_ScreenWidth // 2, A_ScreenHeight // 2 |
|
|
|
|
|
} |
|
|
SetTimer RemoveTooltip, -1000 |
|
|
SetTimer RemoveTooltip, -1000 |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -46,22 +50,23 @@ RemoveTooltip() { |
|
|
*F2::ToggleFullAuto(2) |
|
|
*F2::ToggleFullAuto(2) |
|
|
*F3::ToggleFullAuto(3) |
|
|
*F3::ToggleFullAuto(3) |
|
|
*F4::ToggleFullAuto(4) |
|
|
*F4::ToggleFullAuto(4) |
|
|
|
|
|
*F5::ToggleFullAuto(5) |
|
|
|
|
|
|
|
|
; Do full auto when caps lock is on for enabled weapons |
|
|
; Do full auto when caps lock is on for enabled weapons |
|
|
#HotIf (GetKeyState("CapsLock","T") and FullAutoEnabled[EquipState]) |
|
|
#HotIf (GetKeyState("CapsLock","T") and FullAutoEnabled[EquipState]) |
|
|
*LButton::Turbo("LButton") |
|
|
*LButton::Turbo("LButton") |
|
|
#HotIf |
|
|
|
|
|
|
|
|
|
|
|
; |
|
|
; |
|
|
; Other |
|
|
; Other |
|
|
; |
|
|
; |
|
|
|
|
|
#HotIf FullAutoEnabled[5] |
|
|
|
|
|
|
|
|
; Alt + E holds E |
|
|
; Alt + E holds E |
|
|
*!e UP::Hold("e",["w","a","s","d","Space","LButton","RButton"]) |
|
|
*!e UP::Hold("e",["w","a","s","d"]) |
|
|
|
|
|
|
|
|
; Press shift to sprint, only toggles on |
|
|
; Press shift to sprint, only toggles on |
|
|
*LShift::{ |
|
|
*LShift::{ |
|
|
Send "{Blind}{LShift down}" |
|
|
Send "{Blind}{LShift up}{LShift down}" |
|
|
if (KeyWait("LShift", "T0.1") and KeyWait("LShift", "D T0.1")) { |
|
|
if (KeyWait("LShift", "T0.1") and KeyWait("LShift", "D T0.1")) { |
|
|
Send "{LShift}{LShift}" |
|
|
Send "{LShift}{LShift}" |
|
|
} |
|
|
} |
|
|