Problem with "&" stuck Topic is solved

Ask gaming related questions (AHK v1.1 and older)
shanshans
Posts: 27
Joined: 13 Dec 2015, 08:10

Problem with "&" stuck

Post by shanshans » 11 May 2022, 04:42

Holding numpad2 and then press one of the arrow keys will switching items/weapons (1-4)
Holding one of the arrow key first will also start the switching, so i do it like this

Code: Select all

numpad2::x (In case the game don't support numpad keys.)

numpad2 & ~up::1
numpad2 & ~down::3
numpad2 & ~left::4
numpad2 & ~right::2

~up & numpad2::1
~down & numpad2::3
~left & numpad2::4
~right & numpad2::2
[Mod edit: [code][/code] tags added.]

It is actually doing pretty good, but
the problems(with that game only maybe?...) is when i holding any two arrows key first(by accident or mashing) and then press numpad2 , the game will failed to release the output key (1-4) , that output will keeping at the down state... which is no good... ;_;

To make thing easy , for any combinations of two arrows keys , the output 2 or 4 will always got the highest output priority.

To fix or any better control method/idea/redo are welcome, thks.

Rohwedder
Posts: 7774
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Problem with "&" stuck  Topic is solved

Post by Rohwedder » 12 May 2022, 04:06

Hallo,
try:

Code: Select all

numpad2::x
numpad2 & ~up::1
numpad2 & ~down::3
numpad2 & ~left::4
numpad2 & ~right::2
~up & numpad2::1
~down & numpad2::3
~left & numpad2::4
~right & numpad2::2
~up Up::Send, {1 Up}
~down Up::Send, {3 Up}
~left Up::Send, {4 Up}
~right Up::Send, {2 Up}

shanshans
Posts: 27
Joined: 13 Dec 2015, 08:10

Re: Problem with "&" stuck

Post by shanshans » 12 May 2022, 06:00

It works , thks a lot. ( ͡• ͜ʖ ͡• )

Post Reply

Return to “Gaming Help (v1)”