|
|
方法1、先开机,等到提示要输入密码的时候,按NUM LOCK,这时灯亮了。此时,别输入密码,只要重新启动就行了。
6 _, S0 l9 j* Z; G 方法2、首先在BIOS中把NumLock项设为Enable,然后在BIOS中将PnPWithOS项亦设为Enable即可。不过注销用户时NumLock小键盘锁是关闭的,要手工打开。, c* P9 R" _9 q; _4 }
方法3、进HKEY_CURRENT_USER\Control Panel\Keyboard,将“KeyboardDelay”的值改为2。或者把下面的保存成*.reg,运行。 ^" v& M+ I5 d* `6 l
方法4、仅需要对config.sys文件动点小手术即可达到此目的。设置方法如下:: R/ O9 D" a/ g( W' g" l. O
单击“开始”菜单中的“运行”命令,然后在“打开”框中键入“sysedit”,按下回车键,打开“系统配置编辑程序”窗口。
3 e; s3 g. ?) i. x) ^- N 单击“Config.sys”标题栏,将它切换为当前编辑窗口,u盘装系统然后在编辑区中键入“NumLock=ON”这一行命令。
; B6 u% A& l, P" h/ W 保存修改并关闭“系统配置编辑程序”窗口。 o* E [5 j9 g _1 K% @
方法5、把下面的保存成VBS脚本,执行。 E$ v3 L, W+ ?5 |6 X4 u, r1 b3 `+ V
set WshShell=CreateObject(“WScript.shell”)) p6 G) v3 Z" }
WshShell.SendKeys“{NUMLOCK}”
, |6 w& ?$ _1 P0 W Linux/ ~% m( B+ U: z# N4 T; U
1.- E) b7 ]) W' N& v# N7 f3 O& M
[root@localhost ~]# cat /etc/rc.d/rc.local7 P; {4 N+ K6 a: g2 P
#!/bin/sh0 g9 k% {! f0 g& u- H$ V1 O1 z: J5 W
#
9 Q# `! w! l1 J5 } # This script will be executed *after* all the other init scripts.
( N0 I6 }6 t) _$ I6 W # You can put your own initialization stuff in here if you don‘t" S) X+ E' `8 {
# want to do the full Sys V style init stuff.
$ v6 a# t" F' `; S2 } INITTY=/dev/tty[1-8]
7 M/ T" _- V# ? for tty in $INITTY; do
( J2 o' d+ k U. S5 r5 o" d2 [ setleds -D +num 《 $tty
/ G- K" x, o' E done8 [2 h7 y, _3 A
touch /var/lock/subsys/local3 ^ s* Z. Z) _0 z
2.在man setleds的描述中,有一段设置字符控制台数字灯的脚本 注意的是:番茄花园设置字符控制台数字灯 在字符模式下,也可以这样: setleds -D +num/+caps/+scroll) I# x& l* |! E1 r4 U
Windows Registry Editor Version 5.00
3 C: S# f( [+ L$ D [HKEY_USERS\.DEFAULT\Control Panel\Keyboard]; T4 R+ q3 R: t) w L4 Z
“InitialKeyboardIndicators”=“2”( J1 g, ` b i: b/ J0 y
|
|