Shift + Numpad Keys?

Ask gaming related questions (AHK v1.1 and older)
MortTheBeast
Posts: 9
Joined: 13 Nov 2017, 16:09

Shift + Numpad Keys?

13 Nov 2017, 16:20

Just started playing PlayerUnknown's BattleGrounds and have a weird issue and hoping someone can help with a script to fix the problem...

I use the 4 grouped arrows for movement and then the surrounding keys for other functions. One windows function I was not aware of is for example: hold shift and hit the numpad . is a shortcut for the Del key. Other games I have played, never had this issue...

Is there a way to make the shift + numpad keys function ONLY as numpad and circumvent the Del, End, Home, PageDown etc etc functions? Any help would be greatly appreciated.
Last edited by MortTheBeast on 13 Nov 2017, 18:35, edited 1 time in total.
User avatar
Nextron
Posts: 1391
Joined: 01 Oct 2013, 08:23
Location: Netherlands OS: Win10 AHK: Unicode x32

Re: Shit + Numpad Keys?

13 Nov 2017, 16:27

You could set up remappings like: NumPadDel::NumPadDot
Look for the key names here: https://autohotkey.com/docs/KeyList.htm#Numpad_keys
User avatar
evilC
Posts: 4823
Joined: 27 Feb 2014, 12:30

Re: Shift + Numpad Keys?

14 Nov 2017, 07:40

The difference between the two numpad variants is shift.

eg Numlock on, hit 4, you get 4
hold shift and hit 4, you get left arrow.
This is normal windows behavior.

If you wish to have a hotkey that works for both variants, do it like this:

Code: Select all

Numpad4::
NumpadLeft::
	; hotkey code here
	return
You may also want to do like this, to make sure the keys still register if a modifier is held:

Code: Select all

*Numpad4::
*NumpadLeft::
	; hotkey code here
	return
Noesis
Posts: 301
Joined: 26 Apr 2014, 07:57

Re: Shift + Numpad Keys?

15 Nov 2017, 07:37

Or you could manipulate the numlock state with the script. The above limitation only happens when numlock is on, when it is off *NumpadLeft:: on it's own will work without issue, so instead of circumventing the Numpad Del, End, Home, PageDown etc etc keys you use them and circumvent the Numpad Dot & Number keys instead.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 77 guests