Browse Source

make hold tertiary key look at logical state

master
Mar Alegre 3 years ago
parent
commit
562f512263
  1. 2
      lib/HoldRepeat.ahk
  2. 2
      src/Valheim.ahk

2
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
}

2
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)

Loading…
Cancel
Save