|
|
方法1、先开机,等到提示要输入密码的时候,按NUM LOCK,这时灯亮了。此时,别输入密码,只要重新启动就行了。 |5 D; Q h; D; \0 y
方法2、首先在BIOS中把NumLock项设为Enable,然后在BIOS中将PnPWithOS项亦设为Enable即可。不过注销用户时NumLock小键盘锁是关闭的,要手工打开。5 |# X" |( B# Q' P2 [
方法3、进HKEY_CURRENT_USER\Control Panel\Keyboard,将“KeyboardDelay”的值改为2。或者把下面的保存成*.reg,运行。1 t7 ^6 a3 C# n$ B. ]+ L" d5 m% L
方法4、仅需要对config.sys文件动点小手术即可达到此目的。设置方法如下:4 ^3 e/ C1 a L7 J, A6 R. P
单击“开始”菜单中的“运行”命令,然后在“打开”框中键入“sysedit”,按下回车键,打开“系统配置编辑程序”窗口。$ |0 `- t. @+ t
单击“Config.sys”标题栏,将它切换为当前编辑窗口,u盘装系统然后在编辑区中键入“NumLock=ON”这一行命令。 X+ }' N: v7 b- F
保存修改并关闭“系统配置编辑程序”窗口。
3 F) |9 \3 \- Z, B; m- N 方法5、把下面的保存成VBS脚本,执行。+ }& q! _8 [) `6 b" z
set WshShell=CreateObject(“WScript.shell”)3 e, ^0 \" B2 {. t* C8 |
WshShell.SendKeys“{NUMLOCK}”/ ?4 j# K- O6 d' r3 J1 t! l
Linux: X `( p! |5 V3 u# | F$ [4 v
1.
+ M& U5 j- o& m! q3 h8 ^3 B [root@localhost ~]# cat /etc/rc.d/rc.local
& i- i% @6 J0 u1 _ #!/bin/sh: O7 N: r+ r) ?! D" l9 |
#- @3 D6 d) R2 ~1 O- |: }3 ?
# This script will be executed *after* all the other init scripts.! A+ g- W; G& `5 o% G$ r9 v
# You can put your own initialization stuff in here if you don‘t( }6 K. \/ C" a/ c
# want to do the full Sys V style init stuff.
: `+ H8 ]4 Q0 [* L: j2 W# l INITTY=/dev/tty[1-8]
+ ]1 h J' v9 d$ ?7 Y3 O' c* N" o for tty in $INITTY; do- T# y" @: s4 W# n. r( t3 m6 E* j
setleds -D +num 《 $tty% |" g8 H. m D' N
done
- I% P; K. g7 Y/ r5 _+ @" G touch /var/lock/subsys/local$ {, _1 v% `: T ]# V
2.在man setleds的描述中,有一段设置字符控制台数字灯的脚本 注意的是:番茄花园设置字符控制台数字灯 在字符模式下,也可以这样: setleds -D +num/+caps/+scroll4 X5 D6 d$ W) r( C; D- ` b
Windows Registry Editor Version 5.008 R6 E; X7 W0 F- x$ k+ e; I
[HKEY_USERS\.DEFAULT\Control Panel\Keyboard]
( c B# ?- {8 p. B* d “InitialKeyboardIndicators”=“2”
1 E/ n! |/ r3 w1 O; F2 P1 a |
|