How to Set the NUM LOCK State at Logon in Windows XP
SUMMARY
The status of the NUM LOCK key is specific for each user. By default, NUM
LOCK is turned off. I will describe how to set the NUM LOCK state to be on by
default at logon. You can accomplish this by using a script file that runs at
startup. This script relies on the use of Microsoft Windows Script Host.
Configuring the Script
To configure a script to change the NUM LOCK state, use the following steps:
- Start Notepad.
- Copy the following code, and then paste the code into the text file:
set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys "{NUMLOCK}"
- Save the file as "numlock.vbs" (including the quotes). This
properly creates the file with the .vbs extension. The icon changes from a
Notepad icon to a script icon.
Running the Script from the Startup Folder
To configure the script to run locally, copy the Numlock.vbs file to the user's
Startup folder, which is normally found in the user's profile path.
To configure the script to run for all users, copy the Numlock.vbs file to the
Startup folder in the All Users profile. The default path for this folder is
Documents and Settings\All Users\Start Menu\Programs\Startup.
|