|
|
方法1、先开机,等到提示要输入密码的时候,按NUM LOCK,这时灯亮了。此时,别输入密码,只要重新启动就行了。- Y3 A! i0 x% [7 ~
方法2、首先在BIOS中把NumLock项设为Enable,然后在BIOS中将PnPWithOS项亦设为Enable即可。不过注销用户时NumLock小键盘锁是关闭的,要手工打开。4 s1 j2 a$ {& b" f6 E% w6 P1 |8 z: C
方法3、进HKEY_CURRENT_USER\Control Panel\Keyboard,将“KeyboardDelay”的值改为2。或者把下面的保存成*.reg,运行。# @5 g1 a2 b6 ]
方法4、仅需要对config.sys文件动点小手术即可达到此目的。设置方法如下:/ Y$ C* w, g+ @. J$ ~. e$ [9 @
单击“开始”菜单中的“运行”命令,然后在“打开”框中键入“sysedit”,按下回车键,打开“系统配置编辑程序”窗口。8 P- _5 ~* q( A% o& L
单击“Config.sys”标题栏,将它切换为当前编辑窗口,u盘装系统然后在编辑区中键入“NumLock=ON”这一行命令。0 U. C: O/ J0 H+ r$ g) ? E
保存修改并关闭“系统配置编辑程序”窗口。- c# ]4 h( K/ g, g
方法5、把下面的保存成VBS脚本,执行。
* M! j. f( b: P7 B set WshShell=CreateObject(“WScript.shell”)
- L: }; ^9 B/ D" b% J; o# h8 C WshShell.SendKeys“{NUMLOCK}”+ c; b) u* y; F* m
Linux
$ F- H! ?( u1 s1 f3 W7 S7 m- ]3 K) M% l( y 1.. Z& P* L: l! `7 U
[root@localhost ~]# cat /etc/rc.d/rc.local
% Y0 `3 O0 Q- n: V #!/bin/sh3 s- ]: {6 h! a$ `3 ?: T
#* [: ^- |- b: ?3 x: p
# This script will be executed *after* all the other init scripts.
5 l; B$ k! ~% k" ~% F # You can put your own initialization stuff in here if you don‘t2 }; W. a3 B" {" a
# want to do the full Sys V style init stuff.( y4 E4 ~. y" Q! z! j
INITTY=/dev/tty[1-8]
, W8 k) ?& `( k1 G% M* f for tty in $INITTY; do9 @. s6 F5 p3 g5 J# W) f
setleds -D +num 《 $tty
* F1 {0 I) P$ n3 T done
0 `5 K/ {/ A [ touch /var/lock/subsys/local7 m# ~. G* D+ U( o$ W. s
2.在man setleds的描述中,有一段设置字符控制台数字灯的脚本 注意的是:番茄花园设置字符控制台数字灯 在字符模式下,也可以这样: setleds -D +num/+caps/+scroll3 {# a& Q+ z; M- C( E5 E/ P" z
Windows Registry Editor Version 5.00
9 S% M) Y0 q t6 w9 T+ e' _& Y [HKEY_USERS\.DEFAULT\Control Panel\Keyboard]
8 Q2 `3 i4 t8 m; ? a X/ y8 k “InitialKeyboardIndicators”=“2”
' N$ H- E, O" [; A' U# H# r- X |
|