|
 
- 帖子
- 7765
- 积分
- 21514
- 管庄币
- 9 元
- 注册时间
- 2008-8-20
- 最后登录
- 2016-6-8
|
Windows
" j9 z" C U$ M& a. \# o1 R7 J. e方法1.先开机,等到提示要输入密码的时候,按NUM LOCK,这时灯亮了.此时,别输入密码,只要重新启动就行了.# d0 j& I+ K5 o% T
方法2.首先在BIOS中把NumLock项设为Enable,然后在BIOS中将PnPWithOS项亦设为Enable即可。不过注销用户时NumLock小键盘锁是关闭的,要手工打开。 6 z9 \& y6 z( q b! W2 {+ {
方法3.进HKEY_CURRENT_USER\Control Panel\Keyboard,将"KeyboardDelay"的值改为2。或者把下面的保存成*.reg,运行。( a) b2 E b, m* R, q9 n$ S
" f& f. C2 A. ?+ R/ ~$ mWindows Registry Editor Version 5.00 + s. w2 C- J! |- K3 J
[HKEY_USERS\.DEFAULT\Control Panel\Keyboard] - j7 v1 [; H5 C+ e
"InitialKeyboardIndicators"="2"4 d7 J5 d9 G, S" T/ w
方法4.仅需要对config.sys文件动点小手术即可达到此目的。设置方法如下:9 X2 c- T+ j, ]$ m
- 单击“开始”菜单中的“运行”命令,然后在“打开”框中键入“sysedit”,按下回车键,打开“系统配置编辑程序”窗口。
- 单击“Config.sys”标题栏,将它切换为当前编辑窗口,然后在编辑区中键入“NumLock=ON”这一行命令。
- 保存修改并关闭“系统配置编辑程序”窗口。
方法5.把下面的保存成VBS脚本,执行。1 s8 ]9 L8 U* A2 p
set WshShell=CreateObject("WScript.shell") 2 A9 x7 U& W$ M" a) U
WshShell.SendKeys"{NUMLOCK}"
4 {; A" K# x0 y0 r. X. z# xLinux
' G5 j6 s- {7 x; r1.
; z" J4 i( p' @; p' z; O4 r( X% V
& C* D6 D/ f5 A8 o[root@localhost ~]# cat /etc/rc.d/rc.local 9 t7 h* G/ \1 A, b$ s
#!/bin/sh
+ L% g5 s8 \; M8 H* ]0 l3 A4 |; Z#
8 C( F+ K) [: V1 m L# This script will be executed *after* all the other init scripts.
: W; e! |# L. j0 G/ C+ [9 o# You can put your own initialization stuff in here if you don't
/ D, W9 t, I. w( u# want to do the full Sys V style init stuff. 6 D% s5 ~8 }1 C+ L* Y* |! [+ Z
INITTY=/dev/tty[1-8] }. A' K+ G% z. r5 \" V* ~
for tty in $INITTY; do $ g* }: |4 `* i. G" J2 U
setleds -D +num < $tty * ~! n7 e l2 `& l4 K2 e" Z/ E
done # e1 X) z! [% j: Z
touch /var/lock/subsys/local5 Z& {$ P& |$ i/ D& B8 ~% n& u$ @
2.在man setleds的描述中,有一段设置字符控制台数字灯的脚本 注意的是:设置字符控制台数字灯 在字符模式下,也可以这样: setleds -D +num/+caps/+scroll |
|