WASD key combo to numpad movement?
Posted: 08 May 2018, 08:40
Hi,
I've been using a relatively simple script to remap WASD to the arrow keys for a game. However, the game also supports six-directional movement with the numpad, so I'd like to add Numpad7,9,1,3 to the script for completeness.
So I tried to add this first just for testing:
As per the documentation on combinations:
https://autohotkey.com/docs/Hotkeys.htm#combo
However this only triggers with holding down w *first* and pressing a. And it makes my w::Up remap not work as expected, as it only triggers on release.
I've also tried:
This doesn't appear to work at all.
I'm pretty new to AHK, I've browsed the documentation, but there might be some modifiers I have to use to make the combination of two keys simultaneously map to a single key?
Or isn't this what AHK is really meant for, and it can't be done like this? I really don't want to map all the keys around WASD (i.e QEZC) for the same result...
I've been using a relatively simple script to remap WASD to the arrow keys for a game. However, the game also supports six-directional movement with the numpad, so I'd like to add Numpad7,9,1,3 to the script for completeness.
Code: Select all
;WASD keys
w::Up
s::Down
a::Left
d::Right
Code: Select all
w & a::Numpad7
https://autohotkey.com/docs/Hotkeys.htm#combo
However this only triggers with holding down w *first* and pressing a. And it makes my w::Up remap not work as expected, as it only triggers on release.
I've also tried:
Code: Select all
w & a::
Send {Numpad7}
Return
I'm pretty new to AHK, I've browsed the documentation, but there might be some modifiers I have to use to make the combination of two keys simultaneously map to a single key?
Or isn't this what AHK is really meant for, and it can't be done like this? I really don't want to map all the keys around WASD (i.e QEZC) for the same result...