diff --git a/lib/HoldRepeat.ahk b/lib/HoldRepeat.ahk index dfc94ff..cc7c915 100644 --- a/lib/HoldRepeat.ahk +++ b/lib/HoldRepeat.ahk @@ -32,7 +32,7 @@ HoldLoop(Primary, Secondary, Tertiary,Prefix) { } keyHeld:=!Tertiary.Length for index,key in Tertiary { - if GetKeyState(key,"P") { + if GetKeyState(key) { keyHeld:=1 break } diff --git a/src/Valheim.ahk b/src/Valheim.ahk index 9beb6bb..4697b90 100644 --- a/src/Valheim.ahk +++ b/src/Valheim.ahk @@ -20,7 +20,7 @@ WrapperWindow:="Valheim" ; Autorun *#w UP::Hold("w",["s"],,false) -*#Shift UP::Hold("Shift",["Ctrl"],,false) +*#Shift UP::Hold("Shift",["Ctrl"],["w"],false) ; Autoclick *#LButton UP::HoldOrRepeat("LButton",["RButton","MButton"],false)