|
|
方法1、先开机,等到提示要输入密码的时候,按NUM LOCK,这时灯亮了。此时,别输入密码,只要重新启动就行了。* ]8 v# M, O' Y/ ?# m
方法2、首先在BIOS中把NumLock项设为Enable,然后在BIOS中将PnPWithOS项亦设为Enable即可。不过注销用户时NumLock小键盘锁是关闭的,要手工打开。" @. K0 J! o' D, R
方法3、进HKEY_CURRENT_USER\Control Panel\Keyboard,将“KeyboardDelay”的值改为2。或者把下面的保存成*.reg,运行。9 k5 D! B6 `9 i, l: Q
方法4、仅需要对config.sys文件动点小手术即可达到此目的。设置方法如下:1 I5 @$ f# O9 `$ N; ]' e
单击“开始”菜单中的“运行”命令,然后在“打开”框中键入“sysedit”,按下回车键,打开“系统配置编辑程序”窗口。& c8 x* D( s& ?& m- X9 D
单击“Config.sys”标题栏,将它切换为当前编辑窗口,u盘装系统然后在编辑区中键入“NumLock=ON”这一行命令。
0 w/ [$ n L2 y6 }: { 保存修改并关闭“系统配置编辑程序”窗口。
5 S, i# l' d$ ~9 |9 k; \3 S 方法5、把下面的保存成VBS脚本,执行。
3 N8 w2 i: Y4 n# @. V% l4 Y* M6 Y set WshShell=CreateObject(“WScript.shell”)
9 n' c7 t+ d4 }" k5 [0 ^4 L2 Q WshShell.SendKeys“{NUMLOCK}”9 i9 q0 a- Q0 U. v; @
Linux
7 G+ P/ O N4 f1 D6 a 1.9 O1 Z, a1 b4 Z- f- f) b
[root@localhost ~]# cat /etc/rc.d/rc.local, ` a: @, K6 p( G
#!/bin/sh0 R+ i0 h2 a) _% B! Z* _( Z% F' X
#
4 a) Q. Y; f r, ~. Z # This script will be executed *after* all the other init scripts.
: g5 M2 Y# r L, Z7 c S' \ # You can put your own initialization stuff in here if you don‘t6 ~1 \9 a$ X8 L* M
# want to do the full Sys V style init stuff.
- o# l" `! W3 P$ q3 s" j INITTY=/dev/tty[1-8]
# j& I6 S& c0 h- F1 S for tty in $INITTY; do7 v1 K' b, C/ }5 ?9 {
setleds -D +num 《 $tty# g) I$ g2 U' |# N" _, E( U
done
( B3 N8 h; N3 i1 m touch /var/lock/subsys/local. _& G0 `. b- F+ W
2.在man setleds的描述中,有一段设置字符控制台数字灯的脚本 注意的是:番茄花园设置字符控制台数字灯 在字符模式下,也可以这样: setleds -D +num/+caps/+scroll
2 b6 A5 ]3 X9 _ ~7 { H# i Windows Registry Editor Version 5.001 e) l7 K( A0 r- _! ~
[HKEY_USERS\.DEFAULT\Control Panel\Keyboard]4 M6 _1 p, z0 R
“InitialKeyboardIndicators”=“2”
4 s3 E/ e; }4 L# G% b |
|