Change keys only when Ctrl is pressed
Posted: 20 Jan 2022, 23:38
I need to make arrow keys to execute WASD when I hold Ctrl. Mainly to execute walking instead of running.
So I've made code:
It works when I first hold Ctrl and then press an arrow key, but not when I start running and then press Ctrl.
This code:
normally works for that, but then I don't run even without Ctrl pressed. I need arrows to work as arrows without Ctrl and with Ctrl work as WASD.
Is there a way to make that second code to work only when I hold Ctrl or is there any other method that will do what I need? I've tried many methods found on the web, but nothing worked.
So I've made code:
Code: Select all
^Up::w
^Down::s
^Left::a
^Right::d
This code:
Code: Select all
Up::w
Down::s
Left::a
Right::d
Is there a way to make that second code to work only when I hold Ctrl or is there any other method that will do what I need? I've tried many methods found on the web, but nothing worked.