Board logo

标题: 开机启动小键盘的方法 [打印本页]

作者: 爱的伤痕    时间: 2008-12-4 00:41     标题: 开机启动小键盘的方法

Windows
7 \0 m9 h/ F" y" t方法1.先开机,等到提示要输入密码的时候,按NUM LOCK,这时灯亮了.此时,别输入密码,只要重新启动就行了.( |4 G9 A* c- e3 d' H* d% j
方法2.首先在BIOS中把NumLock项设为Enable,然后在BIOS中将PnPWithOS项亦设为Enable即可。不过注销用户时NumLock小键盘锁是关闭的,要手工打开。
1 L: L- o% u/ X  L, t. y! J- w1 P方法3.进HKEY_CURRENT_USER\Control Panel\Keyboard,将"KeyboardDelay"的值改为2。或者把下面的保存成*.reg,运行。* t; a; ^# M0 C, h

- R5 T' [' Y7 Y) L( u  h$ CWindows Registry Editor Version 5.00 + h9 l* n1 r9 ]
[HKEY_USERS\.DEFAULT\Control Panel\Keyboard] * ?- J5 W$ r" O7 p' F0 a- F1 A- R
"InitialKeyboardIndicators"="2"/ b/ V" O: ]- J4 i8 ?  ], w( P
方法4.仅需要对config.sys文件动点小手术即可达到此目的。设置方法如下:
6 s% R: p7 z( u5 f  M' Q方法5.把下面的保存成VBS脚本,执行。
0 m* U9 q6 u7 o% x5 o- Y- a1 _set WshShell=CreateObject("WScript.shell") % Q7 p- C4 t9 C' }
WshShell.SendKeys"{NUMLOCK}"
8 w, l$ M) M: A+ o& H" V" U5 vLinux& d& Z: A& n" o1 v
1.
: r  n* q" L* V* e" t6 I. f- x8 C; I6 }7 t  [. e9 M) `
[root@localhost ~]# cat /etc/rc.d/rc.local & R) o" n4 I  }+ r8 n7 N6 [
#!/bin/sh
% q9 U0 P4 `: _) u' E$ s$ c' C# . |! ]+ \  O8 L# n
# This script will be executed *after* all the other init scripts. 4 X! U: `5 m, V$ D/ O4 e% x
# You can put your own initialization stuff in here if you don't
/ l; p. ]  o; N/ i) M9 N# want to do the full Sys V style init stuff.
+ ]- |. o6 ~- a( c, [7 \  JINITTY=/dev/tty[1-8]
* i% \7 |, ^% b4 Q- ofor tty in $INITTY; do
5 p# G  S, z1 psetleds -D +num < $tty
7 R8 p  I2 B; b) s, zdone
+ a. l# l, Y4 C  G( Ltouch /var/lock/subsys/local
7 u! V' ]7 K* Q# e. ~! A% g2.在man setleds的描述中,有一段设置字符控制台数字灯的脚本 注意的是:设置字符控制台数字灯 在字符模式下,也可以这样: setleds -D +num/+caps/+scroll
作者: 爱的伤痕    时间: 2008-12-4 09:40

昨晚发帖时候实用了 不错




欢迎光临 管庄论坛 guanzhuang.net (http://www.guanzhuang.net/) Powered by Discuz! 7.2