DonationCoder.com Software > Post New Requests Here
Request: Force NUMLOCK always on
Ralf Maximus:
Howdy,
I've searched for a utility (or HotKeys script) that automatically forces NUMLOCK to remain on at all times. I have some ill-behaved apps that turn it off, and when I go to use the keypad...
So, anything?
Thanks,
Ralf
jgpaiva:
In autohotkey, the following code was supposed to do what you're asking for:
--- ---;
;By jgpaiva
;date: June 2007
;Function:
#installkeybdhook
SetNumLockState,On
SetNumLockState,AlwaysOn
return
It isn't working here, maybe because i own a laptop, so.. Just give it a go ;)
Ralf Maximus:
Thanks for the reply!
Alas, I tried it here and no workee. I've got a Dell Optiplex with a standard 101 keyboard (USB). All the other AutoHotKey stuff I have works fine, and the code above compiles without complaint. But the numlock refuses to stay locked on.
Bah...
app103:
I found this:
http://www.petri.co.il/change_numlock_default_state.htm
To control the state of the NumLock key follow these steps:
1. Open Registry Editor.
2. In Registry Editor, navigate to the following registry key:
--- ---HKEY_USERS\.DEFAULT\Control Panel\Keyboard
3. Create the following value (DWORD):
--- ---InitialKeyboardIndicators
and give it a value of 0 (zero) or 2 (two)
* 0 = NumLock is turned off after logon
* 2 = NumLock is turned on after logon
Note: As always, before making changes to your registry you should always make sure you have a valid backup. In cases where you're supposed to delete or modify keys or values from the registry it is possible to first export that key or value(s) to a .REG file before performing the changes.
4. Close Registry Editor and reboot the computer.
--- End quote ---
Have you tried something like this yet?
Also check here to see if the setting is 0 or 2:
--- ---HKEY_CURRENT_USER\Control Panel\Keyboard\ [InitialKeyboardIndicators]
If you have a 2 in the first key but a 0 in the 2nd one that could be the problem.
jgpaiva:
Interesting... Apparently, the command does have an effect on my computer: the led signaling numlock's state doesn't change anymore. Too bad that numlock's state does :(
Navigation
[0] Message Index
[#] Next page
Go to full version