|
|
方法1、先开机,等到提示要输入密码的时候,按NUM LOCK,这时灯亮了。此时,别输入密码,只要重新启动就行了。
. c( \7 ?- f, l8 d" N8 T( n 方法2、首先在BIOS中把NumLock项设为Enable,然后在BIOS中将PnPWithOS项亦设为Enable即可。不过注销用户时NumLock小键盘锁是关闭的,要手工打开。( I/ A1 L# O, Z* `
方法3、进HKEY_CURRENT_USER\Control Panel\Keyboard,将“KeyboardDelay”的值改为2。或者把下面的保存成*.reg,运行。- m. I" G2 { }5 \
方法4、仅需要对config.sys文件动点小手术即可达到此目的。设置方法如下:
1 H1 X+ q) ?7 H, k$ O) j 单击“开始”菜单中的“运行”命令,然后在“打开”框中键入“sysedit”,按下回车键,打开“系统配置编辑程序”窗口。
2 `, R+ I2 u) E v: I 单击“Config.sys”标题栏,将它切换为当前编辑窗口,u盘装系统然后在编辑区中键入“NumLock=ON”这一行命令。% Z) j ~* N3 e8 r6 S& {! U
保存修改并关闭“系统配置编辑程序”窗口。
6 ~9 }- F F, ~: m 方法5、把下面的保存成VBS脚本,执行。
( t3 e4 T7 V4 ^& {% C set WshShell=CreateObject(“WScript.shell”)
7 ^2 `2 U1 b o- J: g, \+ E WshShell.SendKeys“{NUMLOCK}”: M. _" w2 T1 _# U! [
Linux0 Z6 y4 l( @+ @( I4 E9 c5 t2 ~, l
1.5 J4 X0 G( g5 U) O* P, n' y$ e; d
[root@localhost ~]# cat /etc/rc.d/rc.local! u* m+ y* {( x" h! g3 e4 z, B4 z! d1 c1 W
#!/bin/sh# |+ b0 r( y) [7 A
#
3 L/ @* }, A2 D; s # This script will be executed *after* all the other init scripts.
* @; Q' V- _. A1 }2 W7 X( T # You can put your own initialization stuff in here if you don‘t' a$ K; h! ~$ x+ B
# want to do the full Sys V style init stuff.
! q1 O4 |. o/ q7 b5 G' G2 N( _ INITTY=/dev/tty[1-8]
- Z! v+ Q/ ]2 \; |" z0 Z for tty in $INITTY; do9 E- J7 g% p8 W
setleds -D +num 《 $tty
) z1 U& w' I* v# u# d( d0 f done; [+ v `4 k; u: ]$ ~
touch /var/lock/subsys/local
% W6 g- A( D3 ]& N! Q% a 2.在man setleds的描述中,有一段设置字符控制台数字灯的脚本 注意的是:番茄花园设置字符控制台数字灯 在字符模式下,也可以这样: setleds -D +num/+caps/+scroll
6 ]; r, Z4 {: G5 p6 q9 |" i Windows Registry Editor Version 5.00
- t% {, x! k4 C7 n; N# x [HKEY_USERS\.DEFAULT\Control Panel\Keyboard]! D( _7 Z, {4 B, Y0 K
“InitialKeyboardIndicators”=“2”+ q8 l) M2 ^, |0 n
|
|