|
|
方法1、先开机,等到提示要输入密码的时候,按NUM LOCK,这时灯亮了。此时,别输入密码,只要重新启动就行了。7 }4 F& b0 b) i' y2 M. a
方法2、首先在BIOS中把NumLock项设为Enable,然后在BIOS中将PnPWithOS项亦设为Enable即可。不过注销用户时NumLock小键盘锁是关闭的,要手工打开。
" d6 V) Q N, t6 u 方法3、进HKEY_CURRENT_USER\Control Panel\Keyboard,将“KeyboardDelay”的值改为2。或者把下面的保存成*.reg,运行。
8 L, Z, w& f2 a8 C4 I5 K: S0 O 方法4、仅需要对config.sys文件动点小手术即可达到此目的。设置方法如下:% ~: ~/ t3 ]0 \2 D8 X. X+ e2 k; P
单击“开始”菜单中的“运行”命令,然后在“打开”框中键入“sysedit”,按下回车键,打开“系统配置编辑程序”窗口。% ~ b8 ^3 s4 A$ M: N0 a
单击“Config.sys”标题栏,将它切换为当前编辑窗口,u盘装系统然后在编辑区中键入“NumLock=ON”这一行命令。% Y7 b) c" d4 U7 r
保存修改并关闭“系统配置编辑程序”窗口。6 l' M% H2 [/ e% s8 J
方法5、把下面的保存成VBS脚本,执行。) D; T$ b* |" n* o- ^8 h
set WshShell=CreateObject(“WScript.shell”)
9 [0 ~0 U( t& g" ^ WshShell.SendKeys“{NUMLOCK}”& F, k. Z5 {3 A/ Q0 t+ t
Linux
& \ b; n. I0 y 1.
. S) v% b. D1 V [root@localhost ~]# cat /etc/rc.d/rc.local2 x0 d1 b; f8 n1 E* _9 }6 C
#!/bin/sh
4 e/ V" c4 Q0 h' O #
% L @# C) B& w' M J # This script will be executed *after* all the other init scripts.
( G; @! C$ a/ g # You can put your own initialization stuff in here if you don‘t
+ K# ?/ c: j* Q7 B$ S2 h # want to do the full Sys V style init stuff.
z6 x& W& i* f; C+ h% v, t# K: E( \ INITTY=/dev/tty[1-8]! V% Q9 T" }& M' k& f! J7 N
for tty in $INITTY; do1 ?* k. ~5 S E4 |9 Y
setleds -D +num 《 $tty
# U+ m8 s, l5 {" i7 j( F done5 J! n+ H6 D D; A3 v, \. Q
touch /var/lock/subsys/local
6 l, U8 N/ d, v2 o 2.在man setleds的描述中,有一段设置字符控制台数字灯的脚本 注意的是:番茄花园设置字符控制台数字灯 在字符模式下,也可以这样: setleds -D +num/+caps/+scroll4 V: k6 _) m: ^
Windows Registry Editor Version 5.00
i+ P( B3 U* i" R4 f/ J$ V' k [HKEY_USERS\.DEFAULT\Control Panel\Keyboard]
. M( ], }& t+ j “InitialKeyboardIndicators”=“2”
7 m# T$ [ Z, g |
|