|
方法1、先开机,等到提示要输入密码的时候,按NUM LOCK,这时灯亮了。此时,别输入密码,只要重新启动就行了。: d9 \0 O5 c' l& P8 N9 _- |9 M
方法2、首先在BIOS中把NumLock项设为Enable,然后在BIOS中将PnPWithOS项亦设为Enable即可。不过注销用户时NumLock小键盘锁是关闭的,要手工打开。' O+ V; `# ^& w$ N9 H
方法3、进HKEY_CURRENT_USER\Control Panel\Keyboard,将“KeyboardDelay”的值改为2。或者把下面的保存成*.reg,运行。
2 \4 S: Z$ B3 ~5 S: `$ t& O! W, Z0 q 方法4、仅需要对config.sys文件动点小手术即可达到此目的。设置方法如下:
2 @; \4 s8 a6 k; V8 s 单击“开始”菜单中的“运行”命令,然后在“打开”框中键入“sysedit”,按下回车键,打开“系统配置编辑程序”窗口。1 H" v1 [1 A4 T D6 y; N" k8 z
单击“Config.sys”标题栏,将它切换为当前编辑窗口,u盘装系统然后在编辑区中键入“NumLock=ON”这一行命令。/ e+ h% o# F, }6 }1 y4 z
保存修改并关闭“系统配置编辑程序”窗口。
& b# \: u0 t) D" p 方法5、把下面的保存成VBS脚本,执行。# S& d+ [* f F/ a8 N
set WshShell=CreateObject(“WScript.shell”)' q+ T$ T+ ~) {1 u4 h
WshShell.SendKeys“{NUMLOCK}”
' e+ O; y# o9 R( J2 ~9 {$ E Linux/ P( P' f$ N/ t4 o+ a: O: x
1.
8 R% P9 w+ E U1 s1 Q [root@localhost ~]# cat /etc/rc.d/rc.local8 i, W1 {, u1 y* Y* }
#!/bin/sh5 q% T( X! k% B# |# n. o
## L: P$ g6 T; @3 n, d
# This script will be executed *after* all the other init scripts. [ y- j$ W4 m! l* E1 Q( ]# S
# You can put your own initialization stuff in here if you don‘t
7 r) e1 l% g7 P+ Y+ x; w # want to do the full Sys V style init stuff.
9 _! B% G8 g; t8 g. j0 M0 d; { INITTY=/dev/tty[1-8]
, P& Y$ S4 M5 L4 ?+ a6 I for tty in $INITTY; do
9 R" ?/ J# q+ D setleds -D +num 《 $tty- G" u" y3 ?$ I& x
done
0 Z5 k7 u& G& L$ ^ touch /var/lock/subsys/local
+ A F& l+ m5 ?) Z( f6 x: t5 ?' C 2.在man setleds的描述中,有一段设置字符控制台数字灯的脚本 注意的是:番茄花园设置字符控制台数字灯 在字符模式下,也可以这样: setleds -D +num/+caps/+scroll* }7 e) O U+ F' }$ ]! N
Windows Registry Editor Version 5.009 }, C: u+ r1 @2 p! R
[HKEY_USERS\.DEFAULT\Control Panel\Keyboard]
/ t) I$ H) s9 N0 b+ m “InitialKeyboardIndicators”=“2” s# q+ T1 m7 q
|
|