Sign in to follow this  
Followers 0
Mordanthanus

How to disable the numlock key?

3 posts in this topic

I am looking for a way to disable the NumLock key in an AutoIt v3 script. I want to have the NumLock on, but not be able to toggle it with the key. Anybody have any idea how to do this? I know how to turn Numlock on, but not disable the key itself...


˙˙˙ʎɐqǝ uo pɹɐoqʎǝʞ ɐ ʎnq ı ǝɯıʇ ʇsɐן

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

If your Numlock key is set to a function then you can disable it using this:

; Disable Numlock key On/Off/toggle
    HotKeySet("{NUMLOCK on}")
    HotKeySet("{NUMLOCK off}")
    HotKeySet("{NUMLOCK toggle}")

but I dont how to disable it so that way, the light wont appear on the keyboard (if it's what your talking about)

Edited by J0ker

Share this post


Link to post
Share on other sites

J0ker...and of course you tested that, right ? :whistle:

Share this post


Link to post
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
Sign in to follow this  
Followers 0