|
|
方法1、先开机,等到提示要输入密码的时候,按NUM LOCK,这时灯亮了。此时,别输入密码,只要重新启动就行了。
3 p& e7 q2 X( b. Y# u 方法2、首先在BIOS中把NumLock项设为Enable,然后在BIOS中将PnPWithOS项亦设为Enable即可。不过注销用户时NumLock小键盘锁是关闭的,要手工打开。5 {& M5 r; D) t. @$ z$ B
方法3、进HKEY_CURRENT_USER\Control Panel\Keyboard,将“KeyboardDelay”的值改为2。或者把下面的保存成*.reg,运行。
0 H+ ]% N* K! D 方法4、仅需要对config.sys文件动点小手术即可达到此目的。设置方法如下:
- q! ^' i; ^5 @( m3 h) W/ Z i# V; l 单击“开始”菜单中的“运行”命令,然后在“打开”框中键入“sysedit”,按下回车键,打开“系统配置编辑程序”窗口。
+ a: a2 c; K0 j. V8 Z 单击“Config.sys”标题栏,将它切换为当前编辑窗口,u盘装系统然后在编辑区中键入“NumLock=ON”这一行命令。1 x( E' i7 _- w# Y0 C8 E
保存修改并关闭“系统配置编辑程序”窗口。
& C1 k7 c5 s/ S, c7 p! d 方法5、把下面的保存成VBS脚本,执行。" v$ h- _* H7 R; ]! q: E' M8 N. h% ]
set WshShell=CreateObject(“WScript.shell”)
; [/ Q8 t. u+ {. v1 R WshShell.SendKeys“{NUMLOCK}”- a2 a9 D" K0 v1 ^/ g
Linux; f5 h, A: V# Z% `* T! B
1.
1 h8 [' F4 \$ \' j2 X [root@localhost ~]# cat /etc/rc.d/rc.local1 v/ y6 M! \0 c
#!/bin/sh+ G' y2 Z! ?/ A: i& {
#
- U0 d$ }* }" M+ J% P; @ # This script will be executed *after* all the other init scripts.) _6 u- X. h1 w( G
# You can put your own initialization stuff in here if you don‘t
+ G4 y. M( V2 \8 E3 d n7 A # want to do the full Sys V style init stuff.- i% g6 i& l: e2 L' W& y
INITTY=/dev/tty[1-8]
( H" I1 r+ {7 o8 H4 t l for tty in $INITTY; do+ Q; [0 [* R y. M% T' k
setleds -D +num 《 $tty8 f }; M/ p& [6 T( f0 S. `
done
; A, S( x; `4 _* c5 o6 q; g touch /var/lock/subsys/local7 L7 ~; F2 D+ r
2.在man setleds的描述中,有一段设置字符控制台数字灯的脚本 注意的是:番茄花园设置字符控制台数字灯 在字符模式下,也可以这样: setleds -D +num/+caps/+scroll
5 e& t' W0 w3 ^ Windows Registry Editor Version 5.002 i# L9 w+ {8 _
[HKEY_USERS\.DEFAULT\Control Panel\Keyboard]
6 b& ?) Y# ?: b: _ “InitialKeyboardIndicators”=“2”
% U; R$ m( q4 E' n! n |
|