|
|
方法1、先开机,等到提示要输入密码的时候,按NUM LOCK,这时灯亮了。此时,别输入密码,只要重新启动就行了。% y8 E2 e; s% i$ E
方法2、首先在BIOS中把NumLock项设为Enable,然后在BIOS中将PnPWithOS项亦设为Enable即可。不过注销用户时NumLock小键盘锁是关闭的,要手工打开。
$ o. N1 l: l/ z& S( _ 方法3、进HKEY_CURRENT_USER\Control Panel\Keyboard,将“KeyboardDelay”的值改为2。或者把下面的保存成*.reg,运行。
4 ?. U& w/ p* t' ^, W2 o 方法4、仅需要对config.sys文件动点小手术即可达到此目的。设置方法如下:; h$ _4 c5 P1 ]% I; r
单击“开始”菜单中的“运行”命令,然后在“打开”框中键入“sysedit”,按下回车键,打开“系统配置编辑程序”窗口。( w7 O3 ~' z1 w% ?# p! @) Z
单击“Config.sys”标题栏,将它切换为当前编辑窗口,u盘装系统然后在编辑区中键入“NumLock=ON”这一行命令。
1 U7 x- r, b5 U4 i/ _3 R1 E 保存修改并关闭“系统配置编辑程序”窗口。
) n, ]) h' i% c 方法5、把下面的保存成VBS脚本,执行。2 x& f6 x' c9 f. s6 ^! K, r
set WshShell=CreateObject(“WScript.shell”)
# w7 G9 n B8 z y WshShell.SendKeys“{NUMLOCK}”4 v4 @& }6 k9 P" Y# I
Linux1 @+ n+ e* f' H2 O) c* I- f
1.* H2 w; b7 m( Z8 u% ^3 w- R
[root@localhost ~]# cat /etc/rc.d/rc.local
5 }( _. @: K, t #!/bin/sh
$ l( N9 @- q' L9 a e( t #4 ]' R. c$ A5 g- I! c" F
# This script will be executed *after* all the other init scripts.
& u1 p. J7 ?2 B2 W6 n # You can put your own initialization stuff in here if you don‘t8 E s d; q1 Z H. |
# want to do the full Sys V style init stuff.. W& P, I# I; f2 H1 m
INITTY=/dev/tty[1-8]2 s2 q3 e5 f! B L: Z' \
for tty in $INITTY; do
1 p S% D& l/ k. T2 T5 f setleds -D +num 《 $tty
& a/ S! @* z" c6 _6 @( M7 x: t+ A done) V2 ^; a4 e* {2 L5 |0 h& d$ Q+ i
touch /var/lock/subsys/local
! y* Q$ i- m1 h# E) p" ^ 2.在man setleds的描述中,有一段设置字符控制台数字灯的脚本 注意的是:番茄花园设置字符控制台数字灯 在字符模式下,也可以这样: setleds -D +num/+caps/+scroll' f+ u+ G8 S1 @% K; x& _
Windows Registry Editor Version 5.00$ q1 V) P1 B: ~1 y
[HKEY_USERS\.DEFAULT\Control Panel\Keyboard]
- `& J" O+ x' _5 U! k “InitialKeyboardIndicators”=“2”
3 ]2 P& W; m2 ^1 V: B) R$ m |
|