Jump to content

How Can I Set a HotKeySet for NumPad5, When NumLock is Not On?


 Share

Recommended Posts

Maybe you can do a workaround?

#include <Misc.au3>

While 1
    Sleep(20)
    If _IsPressed("0C") Then MsgBox(64, "Info", "Numpad5 without NumLock on (Clear key) pressed")
WEnd

Edit:

You can also use the HotKey-UDF:

#include <Hotkey.au3>

Global Const $VK_CLEAR = 0x0C

_HotKey_Assign($VK_CLEAR, '_Test')
HotKeySet("{ESC}", "_Exit")

While 1
    Sleep(20)
WEnd

Func _Test()
    MsgBox(64, "Info", "Numpad5 without NumLock on (Clear key) pressed")
EndFunc

Func _Exit()
    Exit
EndFunc
Edited by funkey

Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe
trying to produce bigger and better idiots.
So far, the Universe is winning.

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...