Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do you leave your num lock always on?

Status
Not open for further replies.

corinthia

IS-IT--Management
Feb 26, 2003
30
GB
I have amended this feature within my bios and initially works, but as soon as W2K kiks in, the numlock dissapears
any ideas?
 
Multiple ways to do this, but remember this only begins working after you set the key the way you want, and then do a restart:

To control how numlock functions, edit the following script as desired, cut and paste into numlock.reg and run it.

REGEDIT5
BLANK LINE GOES HERE
[HKEY_CURRENT_USER\Control Panel\Keyboard]
"InitialKeyboardIndicators"="2"
BLANK LINE GOES HERE

With InitialKeyboardIndicators=2, NumLock is enabled and will retain the settings from the last shutdown. With InitialKeyboardIndicators=0, NumLock is disabled for current user.

Numlock doesn't reflect these setting during the logon phase because at that point, Windows is using the .Default user profile since it does not know which user is logging on. Make the same changes to [HKEY_USERS\.DEFAULT\Control Panel\Keyboard] if you want the numlock state to be consistent throughout.

The best, and non-registry editing method to set InitialKeyboardIndicators, is to set numlock on, then use Alt-Ctrl-Del to log off. It should remember state for the account.

Its usually best to avoid registry hacks if possible. You can use the following Windows Script, name it numlock.vbs, to control numlock:

set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys "{NUMLOCK}"

For an individual user, copy numlock.vbs to the user's startup folder. To get the script to run for all users, put the script in the Startup folder in the All Users profile.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top