|
方法1、先开机,等到提示要输入密码的时候,按NUM LOCK,这时灯亮了。此时,别输入密码,只要重新启动就行了。2 G5 ~4 U- _/ h8 m/ M6 Q
方法2、首先在BIOS中把NumLock项设为Enable,然后在BIOS中将PnPWithOS项亦设为Enable即可。不过注销用户时NumLock小键盘锁是关闭的,要手工打开。
# k; l% O8 {. [3 j 方法3、进HKEY_CURRENT_USER\Control Panel\Keyboard,将“KeyboardDelay”的值改为2。或者把下面的保存成*.reg,运行。. x# x" O7 _" H8 s+ ~& D! c* i* v, _
方法4、仅需要对config.sys文件动点小手术即可达到此目的。设置方法如下:$ Y. w s2 i6 {# M$ l6 @' G
单击“开始”菜单中的“运行”命令,然后在“打开”框中键入“sysedit”,按下回车键,打开“系统配置编辑程序”窗口。 H x4 y, N+ g" b1 Q
单击“Config.sys”标题栏,将它切换为当前编辑窗口,u盘装系统然后在编辑区中键入“NumLock=ON”这一行命令。0 P8 X4 u' H& d1 j2 u
保存修改并关闭“系统配置编辑程序”窗口。. W( n+ D7 d! Y }+ U, W
方法5、把下面的保存成VBS脚本,执行。) J5 M1 e7 |) \- ~, u
set WshShell=CreateObject(“WScript.shell”)
9 I/ W# W3 W5 i4 e. y WshShell.SendKeys“{NUMLOCK}”) K3 W4 f8 n7 v1 Q- k- g
Linux
4 R5 n' J0 ~, H% k6 ]7 e. D( `0 j 1.9 \( J7 g) g0 u" M L" _
[root@localhost ~]# cat /etc/rc.d/rc.local, \% M- ~7 E, [5 k" E2 ?
#!/bin/sh
7 c- T9 L& i1 w( g% ]/ A* z #
4 b& @. u5 S: G8 @& @, J # This script will be executed *after* all the other init scripts.: A. t$ U3 Y A8 Y$ O3 N3 L, |
# You can put your own initialization stuff in here if you don‘t5 J2 ^, [1 r/ T% ]
# want to do the full Sys V style init stuff.1 D/ N3 s. i* Q8 t/ f: z
INITTY=/dev/tty[1-8]
* U. U& ^8 W2 G! ~: i Q& @ g: l for tty in $INITTY; do7 y5 x3 p ]- Q, u
setleds -D +num 《 $tty
7 {$ e% l* x1 H1 j h: D$ p done$ R% N- c' [1 o' u6 m3 \
touch /var/lock/subsys/local3 \' g/ G3 {( @" W
2.在man setleds的描述中,有一段设置字符控制台数字灯的脚本 注意的是:番茄花园设置字符控制台数字灯 在字符模式下,也可以这样: setleds -D +num/+caps/+scroll0 Z, J& P; D, d9 k
Windows Registry Editor Version 5.00
1 `! O( f7 w1 B( e [HKEY_USERS\.DEFAULT\Control Panel\Keyboard]# T5 C& ~/ O; s% M% b% m
“InitialKeyboardIndicators”=“2”
# Y( C3 u6 N. M% p N |
|