4

I hope someone can help me out with this; I use a laptop and I like to play games a lot that are arrow key dependent. So after a while of using my laptop, I accidentally broke the Down Arrow key. So I decided to try and find out how to make the Numpad5 button work as the Numpad Down button while Numlock is on. I was trying to use AutoHotkey, but so far I've had no luck. Can anyone help me out with this?

So far the scripts I used that didn't work were Numpad5::NumpadDown or Numpad5::Down. Am I doing something wrong here?

TFM
  • 4,253
  • 2
  • 31
  • 37
Edwin Aleman
  • 41
  • 1
  • 3
  • As an alternative you can try using 2 as Down Arrow (with Numlock Off), I think it is inbuilt and shouldn't need AHK. Is there any particular reason to have it working with Numlock ON. – Ankit Nov 20 '12 at 09:27
  • Check whether it works outside the game. http://www.autohotkey.com/docs/FAQ.htm#games – Ankit Nov 20 '12 at 09:45
  • @Lamb, as far an I'm concerned numlock needs to be on to use the numpad arrow keys. And I'm trying to do this to play a game because one of my arrow keys is broken. I figured it out though. But the game doesn't seem to like the change so now it's a whole different problem. Thanks though.. – Edwin Aleman Nov 21 '12 at 06:45
  • @EdwinAleman Typically, numlock *on* means use the numbers while numlock *off* means use the arrows/home/pgup/end/pgdn keys. But that should not affect how AHK sees the keys. – Bob Nov 21 '12 at 08:44

2 Answers2

4
  • Open the ahk-window by double-clicking the pictogram (right below in the taskbar).
  • View menu: Key history and script info.
  • Press numpad 5 while numlock is off
  • Press F5 to see the VK code of numpad5.

My keyboard numpad5 is 0C, so the script is:

vk0C::NumpadDown

Guyver2
  • 41
  • 2
1

In case anyone like me find this page by wanting the same thing, the answer is NumpadClear::NumpadDown

StayOnTarget
  • 1,178
  • 1
  • 14
  • 26
Mu-Tsun Tsai
  • 190
  • 3