Need sent number to be taken by program as 2, not Numpad2

Ask gaming related questions (AHK v1.1 and older)
bagheerah
Posts: 4
Joined: 08 Jan 2020, 18:50

Need sent number to be taken by program as 2, not Numpad2

30 Mar 2020, 13:30

I am creating a script to improve my joystick functions in Lucasarts game "X-Wing"
To do so I am reprogramming joystick buttons so that I can use one of them as a "shift button" allowing it to combine with others to get alternative functionalities of the game.

It's going well, except for one problem:

X-Wing fire shortcut is "Alt+2" and "numpad2" has a different function. When I assign "Alt+2" to a joystick button the program always understands "numpad2" (or "alt+Numpad2" I can´t tell the difference from the game) and the game does not give me a shot but a camera change. I can map the fire button through the game but then I lose the alternative function or get an additional shooting action each time I use it.
Is there a way to specify the normal keyboard "2" instead of a generic one?
If you need to see the script to help me, just ask for it.
Thanks in advance.
User avatar
Yakshongas
Posts: 590
Joined: 21 Jan 2020, 08:41

Re: Need sent number to be taken by program as 2, not Numpad2

30 Mar 2020, 14:31

Try with this

Code: Select all

{VK62} ;key code for Numpad2
{VK32} ;key code for Number 2
Please mark your topics as solved if you don't need any further help. ✅

Need a little more help? Discord : Yakshongas#9893 🕹
bagheerah
Posts: 4
Joined: 08 Jan 2020, 18:50

Re: Need sent number to be taken by program as 2, not Numpad2

30 Mar 2020, 16:33

Thank you, I will try it. Although I am giving up. Unfortunately the game forces two main buttons to be assigned and that means that whenever I use the secondary function the one assigned to the button will trigger too, so I cannot do what I wanted to.
Also the game is not recognizing key combinations such as shift+F10.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 99 guests