|
方法1、先开机,等到提示要输入密码的时候,按NUM LOCK,这时灯亮了。此时,别输入密码,只要重新启动就行了。5 z3 n/ N o( a1 p% f+ Z
方法2、首先在BIOS中把NumLock项设为Enable,然后在BIOS中将PnPWithOS项亦设为Enable即可。不过注销用户时NumLock小键盘锁是关闭的,要手工打开。
7 T( y7 s5 \0 v2 y5 C P) P 方法3、进HKEY_CURRENT_USER\Control Panel\Keyboard,将“KeyboardDelay”的值改为2。或者把下面的保存成*.reg,运行。
; v- j5 T$ \$ d+ _ 方法4、仅需要对config.sys文件动点小手术即可达到此目的。设置方法如下:
, b9 x; C7 z, f/ A- f( Z- D 单击“开始”菜单中的“运行”命令,然后在“打开”框中键入“sysedit”,按下回车键,打开“系统配置编辑程序”窗口。
& [+ Z1 Y0 O! W! D Z1 H X3 G1 ^4 D 单击“Config.sys”标题栏,将它切换为当前编辑窗口,u盘装系统然后在编辑区中键入“NumLock=ON”这一行命令。
8 ?+ f9 n, M" B) F4 F 保存修改并关闭“系统配置编辑程序”窗口。9 c& `, |' P+ E% L
方法5、把下面的保存成VBS脚本,执行。
9 o9 T% @9 G( L$ v: N. J7 I5 t set WshShell=CreateObject(“WScript.shell”)8 C1 n$ S# Y8 A6 [1 l' Y2 o+ l
WshShell.SendKeys“{NUMLOCK}”
2 m1 T% |+ o* t Linux9 y0 Q+ ~2 w6 p- s% V9 \1 T& ]$ O8 E
1.3 J b; u6 u) t2 g( l6 w( e
[root@localhost ~]# cat /etc/rc.d/rc.local2 L v( k1 T* U1 l! @9 ?7 Z7 P; N- C" Z
#!/bin/sh8 m! F* K" @7 }% p( e1 e, }
#
0 o8 M1 ?- W: c7 o# w$ K # This script will be executed *after* all the other init scripts.# e6 O0 S- \' e! A- w" E6 Y
# You can put your own initialization stuff in here if you don‘t
- b4 e7 C; r2 l1 [+ s l # want to do the full Sys V style init stuff. L, w2 @& Q2 c, n! N) U6 e
INITTY=/dev/tty[1-8]# j8 ~9 |; v7 ~. i8 x
for tty in $INITTY; do* t, V+ H* M8 R! M% p
setleds -D +num 《 $tty7 W% K% j' R0 I* C& D1 g
done1 D, a2 K& ^$ e, n/ |
touch /var/lock/subsys/local1 V: v) Q4 q) J# e* C8 i* y
2.在man setleds的描述中,有一段设置字符控制台数字灯的脚本 注意的是:番茄花园设置字符控制台数字灯 在字符模式下,也可以这样: setleds -D +num/+caps/+scroll5 S5 G5 U9 F: |4 s/ V$ ?2 K, k
Windows Registry Editor Version 5.00; [1 L. ]& u$ X- G
[HKEY_USERS\.DEFAULT\Control Panel\Keyboard] M5 e1 [0 r. ^% v& h
“InitialKeyboardIndicators”=“2” [! S9 F% d% ?; _' P! _+ H
|
|