|
方法1、先开机,等到提示要输入密码的时候,按NUM LOCK,这时灯亮了。此时,别输入密码,只要重新启动就行了。
4 ~( ]& N; v$ M+ u 方法2、首先在BIOS中把NumLock项设为Enable,然后在BIOS中将PnPWithOS项亦设为Enable即可。不过注销用户时NumLock小键盘锁是关闭的,要手工打开。2 f: [/ J7 T8 T5 {3 P
方法3、进HKEY_CURRENT_USER\Control Panel\Keyboard,将“KeyboardDelay”的值改为2。或者把下面的保存成*.reg,运行。
4 z% ]8 ?0 Z7 V, F' q 方法4、仅需要对config.sys文件动点小手术即可达到此目的。设置方法如下:. R& N/ q' R- ~% c. i3 z( C
单击“开始”菜单中的“运行”命令,然后在“打开”框中键入“sysedit”,按下回车键,打开“系统配置编辑程序”窗口。
9 E& y) E0 o" S& V5 {& B 单击“Config.sys”标题栏,将它切换为当前编辑窗口,u盘装系统然后在编辑区中键入“NumLock=ON”这一行命令。9 }, {) d$ a/ j1 g9 ]8 ^! R: C; |
保存修改并关闭“系统配置编辑程序”窗口。
1 \6 M0 o- j9 {$ { 方法5、把下面的保存成VBS脚本,执行。
6 T O& C2 M7 |1 }# d set WshShell=CreateObject(“WScript.shell”)1 v1 g" d9 D$ e9 H! ]+ i( [
WshShell.SendKeys“{NUMLOCK}”
# c1 W$ k: I- J% P Linux" N G0 F* C6 M
1.
9 K4 F( `1 J- w [root@localhost ~]# cat /etc/rc.d/rc.local. _) P+ n- E1 ]6 F7 Z5 x
#!/bin/sh
6 t: c, t3 f+ ]9 `( q& Q #
' q% |+ a# M7 A8 B5 O8 R2 H, E # This script will be executed *after* all the other init scripts.
6 f! n2 K7 t/ @7 x; B # You can put your own initialization stuff in here if you don‘t
! E* r8 O" ]+ y" i( j # want to do the full Sys V style init stuff.! J4 c4 Y9 \0 C/ C+ E
INITTY=/dev/tty[1-8]
3 J9 n. d3 G3 x6 p( o& ^! k for tty in $INITTY; do
9 r5 L5 G) d8 A% U5 r setleds -D +num 《 $tty
! e2 D7 ~& S Z9 ] done
6 B" [7 A. l% J. m! A) { touch /var/lock/subsys/local7 ~! q4 N0 z( X9 r
2.在man setleds的描述中,有一段设置字符控制台数字灯的脚本 注意的是:番茄花园设置字符控制台数字灯 在字符模式下,也可以这样: setleds -D +num/+caps/+scroll
7 u \( G: q3 Z+ d; T Windows Registry Editor Version 5.00
) ?1 v( K, @" u& i3 f. [4 ^" i [HKEY_USERS\.DEFAULT\Control Panel\Keyboard]
6 ?) c0 W: P3 L9 g! V “InitialKeyboardIndicators”=“2”6 v: b3 K- O8 a
|
|