|
|
方法1、先开机,等到提示要输入密码的时候,按NUM LOCK,这时灯亮了。此时,别输入密码,只要重新启动就行了。$ c0 Z1 ?; o' D- b7 v+ r
方法2、首先在BIOS中把NumLock项设为Enable,然后在BIOS中将PnPWithOS项亦设为Enable即可。不过注销用户时NumLock小键盘锁是关闭的,要手工打开。 p9 S" T5 Z7 M- i2 W' K
方法3、进HKEY_CURRENT_USER\Control Panel\Keyboard,将“KeyboardDelay”的值改为2。或者把下面的保存成*.reg,运行。
$ b1 D7 V. i5 M( P 方法4、仅需要对config.sys文件动点小手术即可达到此目的。设置方法如下:
& v* C. X7 `3 [& F- o 单击“开始”菜单中的“运行”命令,然后在“打开”框中键入“sysedit”,按下回车键,打开“系统配置编辑程序”窗口。
3 o; Y9 i; Q% Y- w; I# t5 M/ h 单击“Config.sys”标题栏,将它切换为当前编辑窗口,u盘装系统然后在编辑区中键入“NumLock=ON”这一行命令。4 t/ K+ q' E: u- W+ _6 }
保存修改并关闭“系统配置编辑程序”窗口。& L7 [7 h. F9 u
方法5、把下面的保存成VBS脚本,执行。7 P2 E9 W3 s3 K% ?0 {
set WshShell=CreateObject(“WScript.shell”)
# @( U1 l; H2 h9 m WshShell.SendKeys“{NUMLOCK}”. d' u2 b/ b7 t; |8 m" [
Linux
0 [+ u& Y% j3 s 1.
" w0 E& B0 t. k- e, C, r [root@localhost ~]# cat /etc/rc.d/rc.local
5 E2 H' \: l6 X, V& d #!/bin/sh! s E+ j3 [: a Y2 y, ~; ]7 y* M8 v- n
#/ q m6 P! H3 T" ^
# This script will be executed *after* all the other init scripts.) L9 n0 F% d/ V6 D& u$ A$ W, X
# You can put your own initialization stuff in here if you don‘t
. W2 h' Y6 Q$ W+ P- v: u # want to do the full Sys V style init stuff.( D8 R/ r! r# W* i% e
INITTY=/dev/tty[1-8]' d8 x: e* t6 g1 s: p6 n7 P
for tty in $INITTY; do
7 c9 m0 w ~/ `- E setleds -D +num 《 $tty
. d4 }6 i/ O% k9 ]* e2 S done
6 y0 w" C/ u( G! S touch /var/lock/subsys/local
' ]2 c$ K6 R q0 X. t7 P 2.在man setleds的描述中,有一段设置字符控制台数字灯的脚本 注意的是:番茄花园设置字符控制台数字灯 在字符模式下,也可以这样: setleds -D +num/+caps/+scroll8 \9 @5 n$ W0 L$ s
Windows Registry Editor Version 5.00% {; z. e0 c, {% e8 I
[HKEY_USERS\.DEFAULT\Control Panel\Keyboard]
4 t! }+ G: a' Y5 d" q “InitialKeyboardIndicators”=“2”
y& J- U4 G) w0 [ |
|