Board logo

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

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

Windows: u9 l8 }: G) W4 _6 k
方法1.先开机,等到提示要输入密码的时候,按NUM LOCK,这时灯亮了.此时,别输入密码,只要重新启动就行了.- p% q( [/ l0 m
方法2.首先在BIOS中把NumLock项设为Enable,然后在BIOS中将PnPWithOS项亦设为Enable即可。不过注销用户时NumLock小键盘锁是关闭的,要手工打开。
, W- z4 b& h+ z" E  I# ?/ K方法3.进HKEY_CURRENT_USER\Control Panel\Keyboard,将"KeyboardDelay"的值改为2。或者把下面的保存成*.reg,运行。
: t/ A2 Y( ^  W. E4 S) B. V& H/ S' k
; q- l/ M! W6 J! G8 xWindows Registry Editor Version 5.00   E* B3 {3 Q: g4 C4 N8 L, g
[HKEY_USERS\.DEFAULT\Control Panel\Keyboard] * m7 f# R( S6 g2 X3 b2 f0 e
"InitialKeyboardIndicators"="2"
  R7 b8 \! i! ^, D9 L  \* w3 H0 Z方法4.仅需要对config.sys文件动点小手术即可达到此目的。设置方法如下:
- J: k( v# p" F- d6 F方法5.把下面的保存成VBS脚本,执行。" G. t0 x1 ?2 V- B7 V
set WshShell=CreateObject("WScript.shell") + i  T' d5 [0 \/ t( g
WshShell.SendKeys"{NUMLOCK}" " I: t7 O0 U! I( z' m
Linux
' W/ n6 G. ]) V1.: {' r" ~/ E8 c. L. C3 s
. V, |, j# U3 S7 E5 n
[root@localhost ~]# cat /etc/rc.d/rc.local   q/ j6 _# h/ f7 N, ~* ?8 V
#!/bin/sh
$ B( R( C7 b6 ~( M* d; X#
; h1 c- h; Z  e- U7 x# This script will be executed *after* all the other init scripts.
6 j# y: H: M+ L5 t; b7 P/ a4 b# You can put your own initialization stuff in here if you don't
" @" V1 x: E$ f2 {; A7 y# want to do the full Sys V style init stuff.
7 S, Z  E# l3 [# D3 s8 wINITTY=/dev/tty[1-8] * V6 j  }. @3 H; H% Y
for tty in $INITTY; do
* ^* O8 v* x; Esetleds -D +num < $tty
9 j* \8 t/ t" L( S8 W% E$ }4 fdone
. r* A+ [& n. y/ dtouch /var/lock/subsys/local8 J. p1 T' f3 m, H8 Q. O
2.在man setleds的描述中,有一段设置字符控制台数字灯的脚本 注意的是:设置字符控制台数字灯 在字符模式下,也可以这样: setleds -D +num/+caps/+scroll
作者: 爱的伤痕    时间: 2008-12-4 09:40

昨晚发帖时候实用了 不错




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