|
方法1、先开机,等到提示要输入密码的时候,按NUM LOCK,这时灯亮了。此时,别输入密码,只要重新启动就行了。
; N0 h( A/ s8 A* L) p) T 方法2、首先在BIOS中把NumLock项设为Enable,然后在BIOS中将PnPWithOS项亦设为Enable即可。不过注销用户时NumLock小键盘锁是关闭的,要手工打开。+ \+ _9 _1 J+ C1 o2 ?7 z
方法3、进HKEY_CURRENT_USER\Control Panel\Keyboard,将“KeyboardDelay”的值改为2。或者把下面的保存成*.reg,运行。6 Q2 V; {9 \) q. n [
方法4、仅需要对config.sys文件动点小手术即可达到此目的。设置方法如下:0 T% K- m/ L2 `3 ~
单击“开始”菜单中的“运行”命令,然后在“打开”框中键入“sysedit”,按下回车键,打开“系统配置编辑程序”窗口。2 a1 M* ~7 Q& E4 c; P: V' y
单击“Config.sys”标题栏,将它切换为当前编辑窗口,u盘装系统然后在编辑区中键入“NumLock=ON”这一行命令。
: c: p. L/ E G2 q B7 L: V1 I 保存修改并关闭“系统配置编辑程序”窗口。
+ w0 i/ F- M* E. u- A$ X7 S/ N" a 方法5、把下面的保存成VBS脚本,执行。 d W. d9 i$ ]
set WshShell=CreateObject(“WScript.shell”)# f6 ?- G! @' n; P$ ]& x
WshShell.SendKeys“{NUMLOCK}”; I" u6 ~0 {% |% p/ u% u" e
Linux
' t1 h3 c; z! M* F 1.. g, G- @6 x. O/ a% k# L
[root@localhost ~]# cat /etc/rc.d/rc.local# M1 s/ p! u8 m( Q) M' e
#!/bin/sh
) u" s+ P4 c$ O8 y #
S2 D( |. J& o1 m" Z3 T # This script will be executed *after* all the other init scripts.
& I+ P: w4 a3 {" W2 I # You can put your own initialization stuff in here if you don‘t
, E0 H w+ \2 x4 O* d # want to do the full Sys V style init stuff.
" y# q/ e3 c l0 i, ~5 T5 h. H INITTY=/dev/tty[1-8]
; R) k# h, r1 \( ^4 ~( ? for tty in $INITTY; do
; d8 R% }" w6 n6 j& `* i setleds -D +num 《 $tty
% a" h2 ?2 o- [+ N2 w done5 j/ p# c0 i3 z7 t
touch /var/lock/subsys/local+ _5 q8 e4 t' l- }3 j% z4 m
2.在man setleds的描述中,有一段设置字符控制台数字灯的脚本 注意的是:番茄花园设置字符控制台数字灯 在字符模式下,也可以这样: setleds -D +num/+caps/+scroll
% O" ^' P/ N) P" H: ^ Windows Registry Editor Version 5.00, ` N* m* L7 v
[HKEY_USERS\.DEFAULT\Control Panel\Keyboard]
7 W* s- f* j8 P, I “InitialKeyboardIndicators”=“2”, T+ i# u2 O& l
|
|