|
|
方法1、先开机,等到提示要输入密码的时候,按NUM LOCK,这时灯亮了。此时,别输入密码,只要重新启动就行了。
$ W* ^3 R7 ?- }, }8 E 方法2、首先在BIOS中把NumLock项设为Enable,然后在BIOS中将PnPWithOS项亦设为Enable即可。不过注销用户时NumLock小键盘锁是关闭的,要手工打开。
" r3 y2 R% S; I0 y& c b1 V' Q 方法3、进HKEY_CURRENT_USER\Control Panel\Keyboard,将“KeyboardDelay”的值改为2。或者把下面的保存成*.reg,运行。, g3 s: g* ]5 }, [, u+ [
方法4、仅需要对config.sys文件动点小手术即可达到此目的。设置方法如下:
4 m j, y1 ?7 |) M 单击“开始”菜单中的“运行”命令,然后在“打开”框中键入“sysedit”,按下回车键,打开“系统配置编辑程序”窗口。
& w) T7 R$ z/ o, i- `* j+ S) p j 单击“Config.sys”标题栏,将它切换为当前编辑窗口,u盘装系统然后在编辑区中键入“NumLock=ON”这一行命令。
1 g" z2 d9 X( d- K9 } 保存修改并关闭“系统配置编辑程序”窗口。
2 q. ^3 @# L7 @* Q: { 方法5、把下面的保存成VBS脚本,执行。" g- X9 A1 g$ ]) w: }7 G: W
set WshShell=CreateObject(“WScript.shell”)
4 i+ s/ Q# ~2 l/ b5 r6 u WshShell.SendKeys“{NUMLOCK}”
1 W6 Y% i- X$ f Linux
" R5 u1 i! M* ~$ S! V 1.
/ t% j, a g5 c6 F$ p6 v5 _ [root@localhost ~]# cat /etc/rc.d/rc.local
/ ?- N( b. a( } #!/bin/sh0 p+ V1 q3 Q2 l/ v' I. t% Q# x- k# s: i
#1 z) W/ b9 {1 f8 v" }
# This script will be executed *after* all the other init scripts.
7 M: Y5 `" @+ F # You can put your own initialization stuff in here if you don‘t
/ x7 a4 R$ R/ s7 ] # want to do the full Sys V style init stuff.9 a: U$ r$ ~) q
INITTY=/dev/tty[1-8]/ v& F. U/ f: O
for tty in $INITTY; do
% n; D7 P! b5 f( v- a, z6 r setleds -D +num 《 $tty+ Y# m. l7 G( s
done
$ g6 e, y0 w: r touch /var/lock/subsys/local6 D9 B5 ~: V- y: p' j" f- k( e
2.在man setleds的描述中,有一段设置字符控制台数字灯的脚本 注意的是:番茄花园设置字符控制台数字灯 在字符模式下,也可以这样: setleds -D +num/+caps/+scroll2 h: A6 R& u7 w( [
Windows Registry Editor Version 5.00+ d1 Q4 S/ d- E- z; z
[HKEY_USERS\.DEFAULT\Control Panel\Keyboard]/ N; f! r: Q) p/ T' G% M* x
“InitialKeyboardIndicators”=“2”
1 r4 Z+ G$ U, S( O1 }" I% ^ k) O |
|