When holding both LShift and W (regardless of which one was pressed first),
I want them both to be blocked and replaced by a new Key, say X (held until the either of other 2 keys are released).
My Use case?
Your character in some hypothetical game, walks slow while holding W, But Runs fast while holding X.
And You and I both would rather Use Shift+W to sprint instead, No?
I've spent my whole today trying to figure out how to script that with no avail. (and i'm a dummy with no scripting knowledge)
I got very close, but there's always one annoying issue;
Pressing Shift while W is held down, wont trigger X, and wont Block W
Again:
I want both Shift and W function normally while NOT held down simultaneously, but both Blocked and Replaced by X when Held Down Together, No matter which one was pressed first.
just a few of my attemps:
Code: Select all
~w::SendInput, {u Up}
#IF GetKeyState("LShift","P") or #IF GetKeyState("w","P")
LShift::x
w::x
#IF
Code: Select all
Lshift & w::
w & LShift::
Sendinput {x down}
Sendinput {x up}