Jump to content

Unable to HotKeySet capture some NUMPAD keys


Rick711
 Share

Recommended Posts

I was trying to HotKeySet the NUMPAD0 and was unable to do so. I have not tested any other keys other than the Number Pad keys

With the following code, NUMPAD0-9 and NUMPADDOT are not being captured.

I keep looking at the code, feeling like I have missed something ridiculous, but so far I can see nothing.

Any ideas?

HotKeySet("{NUMPAD0}", "TestKey")
HotKeySet("{NUMPAD1}", "TestKey")
HotKeySet("{NUMPAD2}", "TestKey")
HotKeySet("{NUMPAD3}", "TestKey")
HotKeySet("{NUMPAD4}", "TestKey")
HotKeySet("{NUMPAD5}", "TestKey")
HotKeySet("{NUMPAD6}", "TestKey")
HotKeySet("{NUMPAD7}", "TestKey")
HotKeySet("{NUMPAD8}", "TestKey")
HotKeySet("{NUMPAD9}", "TestKey")
HotKeySet("{NUMPADMULT}", "TestKey")
HotKeySet("{NUMPADADD}", "TestKey")
HotKeySet("{NUMPADSUB}", "TestKey")
HotKeySet("{NUMPADDIV}", "TestKey")
HotKeySet("{NUMPADDOT}", "TestKey")

While 1
    Sleep(100)
WEnd

Func TestKey()
    MsgBox(0, "", "Pressed " & @HotKeyPressed)
EndFunc
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...