From 562f5122635e4e30a90e996d2cc067f0fe5f1fd6 Mon Sep 17 00:00:00 2001 From: mar Date: Sun, 1 Jan 2023 17:49:45 -0600 Subject: [PATCH] make hold tertiary key look at logical state --- lib/HoldRepeat.ahk | 2 +- src/Valheim.ahk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)