|
|
方法1、先开机,等到提示要输入密码的时候,按NUM LOCK,这时灯亮了。此时,别输入密码,只要重新启动就行了。
, f( h6 F+ g/ B* n( D 方法2、首先在BIOS中把NumLock项设为Enable,然后在BIOS中将PnPWithOS项亦设为Enable即可。不过注销用户时NumLock小键盘锁是关闭的,要手工打开。# a. ]' G1 u4 r |1 g# W7 F2 ?# s: y
方法3、进HKEY_CURRENT_USER\Control Panel\Keyboard,将“KeyboardDelay”的值改为2。或者把下面的保存成*.reg,运行。
* M) f# V. n8 R) x- q& l7 e) a! J 方法4、仅需要对config.sys文件动点小手术即可达到此目的。设置方法如下:
" l* r7 \$ |& c" ? 单击“开始”菜单中的“运行”命令,然后在“打开”框中键入“sysedit”,按下回车键,打开“系统配置编辑程序”窗口。+ l: e2 I. Z; Z9 r/ c& t
单击“Config.sys”标题栏,将它切换为当前编辑窗口,u盘装系统然后在编辑区中键入“NumLock=ON”这一行命令。
5 Z% |3 G; P( w/ w2 J4 F) P3 m 保存修改并关闭“系统配置编辑程序”窗口。+ I0 h- R. Z$ ?) W
方法5、把下面的保存成VBS脚本,执行。% q* i7 A K$ N; B' o( q# f1 |
set WshShell=CreateObject(“WScript.shell”)
" d" U1 A# _. {- f# W) c1 p# @ WshShell.SendKeys“{NUMLOCK}”% l7 U4 H! i. b% k! I H2 M6 U1 B& }
Linux
' C. [( m- @ B0 v. o6 V1 z7 G1 n 1.- o! F! M8 N5 s! k& n( p
[root@localhost ~]# cat /etc/rc.d/rc.local
a% L- Z/ Y# Y9 k" D6 w; K4 S #!/bin/sh, k ?2 g0 k* o- G
#
# M& h( e) e' o0 C/ I# q- I, M( t7 f # This script will be executed *after* all the other init scripts.
, k5 \- L3 A! }; p3 h) W& _6 i # You can put your own initialization stuff in here if you don‘t8 s0 ~- n' _6 p W
# want to do the full Sys V style init stuff.% _& q6 C# O9 k+ ]/ E0 J
INITTY=/dev/tty[1-8]1 T2 Z1 k) ~7 c6 I. H: Q+ f3 ?' n
for tty in $INITTY; do2 \: j* T# K5 K }4 t
setleds -D +num 《 $tty
: g& T8 x" h9 l$ Y& k done
0 h4 A1 `* C4 `$ l& e; o- S touch /var/lock/subsys/local/ R3 B6 S& h/ f; x
2.在man setleds的描述中,有一段设置字符控制台数字灯的脚本 注意的是:番茄花园设置字符控制台数字灯 在字符模式下,也可以这样: setleds -D +num/+caps/+scroll4 x" q* J* A* E5 Z1 N" D8 l
Windows Registry Editor Version 5.00( ~& m' v% M) A$ s5 Y
[HKEY_USERS\.DEFAULT\Control Panel\Keyboard]
1 M0 D4 _$ D4 j “InitialKeyboardIndicators”=“2”
; k* `# G0 A; s! c. P; B; G |
|