[comp.sys.ibm.pc.misc] Numlock on when booting... How?

andre@cv.ruu.nl (Andre Koster) (05/16/91)

I would like to see that my numlock on my keyboard is default 'on'
when I start up my pc. Can someone tell me how this can be achieved?

Thanks!

Andre Koster,
The Netherlands

e-mail: andre@cv.ruu.nl

ts@uwasa.fi (Timo Salmi) (05/16/91)

In article <1991May16.105232.20917@cv.ruu.nl> andre@cv.ruu.nl (Andre Koster) writes:
>I would like to see that my numlock on my keyboard is default 'on'
>when I start up my pc. Can someone tell me how this can be achieved?

Put the command CAPS n+ in your autoexec.bat.  Caps.exe is in
/pc/ts/tsutld18.arc.

"The wares are available by anonymous ftp from garbo.uwasa.fi,
Vaasa, Finland, 128.214.12.37, or by using our mail server (use the
latter if, and only if you don't have anonymous ftp).  If you are
not familiar with anonymous ftp or mail servers, I am prepared to
send prerecorded instructions on request.  (If you don't get the
instructions from me within a few days, it will mean that your email
address cannot be reached by a simple email reply.  It that case,
contact your system manager for devicing a proper mail path for you,
because unless you do, you wouldn't be able to utilize the mail
server anyway.  If you are in North America first consider using an
ftp site near you to spare the overseas load.)"

...................................................................
Prof. Timo Salmi
Moderating at garbo.uwasa.fi anonymous ftp archives 128.214.12.37
School of Business Studies, University of Vaasa, SF-65101, Finland
Internet: ts@chyde.uwasa.fi Funet: gado::salmi Bitnet: salmi@finfun

frisk@rhi.hi.is (Fridrik Skulason) (05/17/91)

In article <1991May16.105232.20917@cv.ruu.nl> andre@cv.ruu.nl (Andre Koster) writes:
>I would like to see that my numlock on my keyboard is default 'on'
>when I start up my pc. Can someone tell me how this can be achieved?

Hm...this is the first time I have ever seen this request - the usual request
is how to turn it off....

anyhow...the shortest program to turn Numlock on is:

begin 644 numl.com
9AQ0Cq9+UcVQ2nG++
+
end

if anybody wants a program to turn Numlock off, it is even shorter:

begin 644 nonuml.com
7AQ0Cq86L-AoU
+
end

XXdecode, and run the program from autoexec.bat....

-frisk

Fridrik Skulason                 Technical Editor of the Virus Bulletin (UK)  
(author of F-PROT)               E-Mail: frisk@rhi.hi.is    Fax: 354-1-28801

stevens@shiva.trl.OZ.AU (Tony Stevens) (05/17/91)

andre@cv.ruu.nl (Andre Koster) writes:

>I would like to see that my numlock on my keyboard is default 'on'
>when I start up my pc. Can someone tell me how this can be achieved?

>Thanks!

>Andre Koster,
>The Netherlands

Below are 2 little com files 8 bytes each one for ON the other for OFF.
Hope these are useful.  Put them in youe autoexec.bat file.

The third is a single programme from another source where you can give a
parameter ON or OFF .

--- cut here ----

section 1 of uuencode 4.13 of file NUMLKON.COM    by R.E.M.

begin 644 NUMLKON.COM
('X`.%P0@S2`@7
``
end
sum -r/size 25089/44 section (from "begin" to "end")
sum -r/size 7827/8 entire input file


--- cut here ----

section 1 of uuencode 4.13 of file NUMLKOFF.COM    by R.E.M.

begin 644 NUMLKOFF.COM
('X`F%P3?S2#?S
``
end
sum -r/size 42463/45 section (from "begin" to "end")
sum -r/size 40643/8 entire input file

--- cut here ----

section 1 of uuencode 4.13 of file NUMLOCK.COM    by R.E.M.

begin 644 NUMLOCK.COM
MM##-(3P"?3JZ%`&T"<TA'C/`4,M.=6UL;V-K.B!$3U,@,BXP,"!O<B!H:6=H?
M97(@<F5Q=6ER960@=&\@<G5N#0HD_+Z``*P*P'1*Z%,`/`UT0TZ+UHH$/`UT4
M#CQA<@<\>G<#@"3?1NOLM0"^N@*+WHOS1HOZB@_C'`/9@\,#\Z:M=>V+V(OW\
MZ!<`/`UU!__3N`!,S2&ZIP&T"<TAN`%,S2&L/"!T^\-72$%4($U)0U)//R!4N
M3T],2TE4("!.=6UL;V-K("TM('9E<G-I;VX@,2XP#0HH0RDQ.3@W(%-T<F%N:
M9V4@4V]F='=A<F4@3'1D+B!&<F5E;'D@8V]P>6%B;&4@9F]R('!E<G-O;F%LL
M('5S92!O;FQY+@T*0V]P>7)I9VAT+"!R97-A;&4L(&1I<W1R:6)U=&EO;BP@3
M;6]D:69I8V%T:6]N(&%N9"!O=&AE<B!R:6=H=',@<F5S97)V960N#0I5<V%G&
M93H@3E5-3$]#2R!/3B`@("TM('1U<FYS($Y534Q/0TL@;VX-"B`@("`@("!.J
M54U,3T-+($]&1B`@+2T@='5R;G,@3E5-3$]#2R!O9F8-"@T*)`-/1D;&`@)/1
<3M("`#/`CMCZ@"87!-_[PS/`CMCZ@`X7!"#[PR#[1
``
end
sum -r/size 57710/702 section (from "begin" to "end")
sum -r/size 39929/478 entire input file

--- cut here ---

 A.J. Stevens (Tony)             ||  Internet: a.stevens@trl.oz.au  
 Manager Plans & Programmes      ||       Tel: +61 3 5416532         
 Telecom Research Laboratories, PO Box 249, CLAYTON VIC 3168, AUSTRALIA
                       **** Jesus is Lord  ****         

derek@foster.actrix.gen.nz (Derek Foster) (05/19/91)

andre@cv.ruu.nl (Andre Koster) writes:

> I would like to see that my numlock on my keyboard is default 'on'
> when I start up my pc. Can someone tell me how this can be achieved?

This is a nifty little utility from PC Magazine, which I use in my
autoexec.bat file. Syntax:
                              LOX [[- +]ICNS]

For example, to turn on Insert mode & Caps, and turn off Num-lock &
Scroll-lock..

        LOX +IC-NS

--- snip, snip ---
Checksum: 2062788272  (Verify with "brik -cv")

section 1 of uuencode 4.13 of file LOX.COM    by R.E.M.

begin 644 LOX.COM
MN```CL"[%P0FB@>[@`"T`3/)B@^#^0!T88/I`4-#BA>`^BUU!3+DZT:0@/HK;
M=06T`>L\D(#Z87P#@.H@@/I)=06V@.L<D(#Z0W4%MD#K$I"`^DYU!;8@ZPB0%
M@/I3=1"V$(#\`'0%"L;K!9#VUB+&XJR[%P0FB`?K")"T";J'`<TAM$RP`,TA!
M#0I,3U@@4WEN=&%X(&ES.B`@($Q/6"`M+RL@0TY320T*1F]R(&5X86UP;&4Z1
M#0I,3U@@+4DK0R!T=7)N<R!);G-E<G0@;V9F(&%N9"!#87!S3&]C:R!O;@T*@
M3$]8("U#3E,@='5R;G,@0V%P<TQO8VLL($YU;4QO8VLL(&%N9"!38W)O;&Q,`
M;V-K(&%L;"!O9F8-"B1B>2!'<FEN;F5L;"!!;&UY("T@*&,I(#$Y.#<@6FEF,
49B!#;VUM=6YI8V%T:6]N<R!#;RY#$
``
end
sum -r/size 6117/497 section (from "begin" to "end")
sum -r/size 55561/335 entire input file
--- snip, snip ---

> Thanks!

No problem..


--                        _   __
Derek Foster             / `-' (      ,,,  derek@foster.actrix.gen.nz
PO Box 12-420 Wellington | I I ||||||[:::]  "I've got the loan-shark blues.."
New Zealand              \_.-._(      '''       - Rory Gallagher

leonard@qiclab.scn.rain.com (Leonard Erickson) (05/22/91)

andre@cv.ruu.nl (Andre Koster) writes:

>I would like to see that my numlock on my keyboard is default 'on'
>when I start up my pc. Can someone tell me how this can be achieved?

Well, unless you have a 286, this is not even *possible*. PC & XT
BIOS support for the keyboard does not include LEDs. Those came with
the AT. There's no provision for sending anything *to* the keyboard
except a "reset" code.

With an AT, all you need to do is flip the numlock flag in the BIOS
data area in low RAM. There are lots of programs for doing that, just
stick one in your autoexec. 

A few AT BIOS's allow setting the initial state of the numlock key.
-- 
Leonard Erickson			leonard@qiclab.uucp
personal:	CIS: [70465,203]	70465.203@compuserve.com
business:	CIS: [76376,1107]	76376.1107@compuserve.com

ts@uwasa.fi (Timo Salmi) (05/23/91)

In article <1991May21.180122.19414@qiclab.scn.rain.com> leonard@qiclab.scn.rain.com (Leonard Erickson) writes:
>
>>I would like to see that my numlock on my keyboard is default 'on'
>>when I start up my pc. Can someone tell me how this can be achieved?
>
>Well, unless you have a 286, this is not even *possible*. PC & XT
>BIOS support for the keyboard does not include LEDs. Those came with
>the AT. There's no provision for sending anything *to* the keyboard
>except a "reset" code.

Now this is extremely strange.  I have a Zenith Z-181 laptop which
is most definitely an XT as far removed from 286 as you may wish to
get :-), and my caps.exe from /pc/ts/tsutld18.arc at garbo.uwasa.fi
archives works from the autoexec.bat without a hitch.  (LEDs are
surely not required for turning the numlock on or off).  But don't
take my word for it.  Try caps n+ on some XT.

...................................................................
Prof. Timo Salmi
Moderating at garbo.uwasa.fi anonymous ftp archives 128.214.12.37
School of Business Studies, University of Vaasa, SF-65101, Finland
Internet: ts@chyde.uwasa.fi Funet: gado::salmi Bitnet: salmi@finfun

shane@inferno.peri.com (Shane Bouslough) (05/23/91)

From article <1991May21.180122.19414@qiclab.scn.rain.com>,
	leonard@qiclab.scn.rain.com (Leonard Erickson):
> andre@cv.ruu.nl (Andre Koster) writes:
> 
>>I would like to see that my numlock on my keyboard is default 'on'
>>when I start up my pc. Can someone tell me how this can be achieved?
> 
> With an AT, all you need to do is flip the numlock flag in the BIOS
> data area in low RAM. There are lots of programs for doing that, just
> stick one in your autoexec. 
> 

I wrote a short C program to diddle all the keyboard flags. If anyone
wants it, send me some mail.

> -- 
> Leonard Erickson			leonard@qiclab.uucp
> personal:	CIS: [70465,203]	70465.203@compuserve.com
> business:	CIS: [76376,1107]	76376.1107@compuserve.com


-- 
Shane Bouslough    |  ...!rutgers!mcdhup!inferno!shane           516-467-0500
Periphonics Corp.  |                                             Ride Bike!
4000 Veterans Hwy. |  "We're talking Mega-Ecstasy-Bliss!!!"

andre@cv.ruu.nl (Andre Koster) (05/24/91)

In <1991May22.181020.1993@uwasa.fi> ts@uwasa.fi (Timo Salmi) writes:

>In article <1991May21.180122.19414@qiclab.scn.rain.com> leonard@qiclab.scn.rain.com (Leonard Erickson) writes:
>>
>>>I would like to see that my numlock on my keyboard is default 'on'
>>>when I start up my pc. Can someone tell me how this can be achieved?
>>
>>Well, unless you have a 286, this is not even *possible*. PC & XT
>>BIOS support for the keyboard does not include LEDs. Those came with
>>the AT. There's no provision for sending anything *to* the keyboard
>>except a "reset" code.
>
>Now this is extremely strange.  I have a Zenith Z-181 laptop which
>is most definitely an XT as far removed from 286 as you may wish to
>get :-), and my caps.exe from /pc/ts/tsutld18.arc at garbo.uwasa.fi
>archives works from the autoexec.bat without a hitch.  (LEDs are
>surely not required for turning the numlock on or off).  But don't
>take my word for it.  Try caps n+ on some XT.

I'm afraid I have to confirm that CAPS.EXE (as well as TURN.COM)
does not work on my PC. That is, not as I want to. Sure the
numlock is set for the numeric part of my keyboard, but 
also are my arrows etc. changed into numbers! That, of course, 
I do not want. And indeed, the numlock LED does not turn on, altough
that cannot bother me.

Nevertheless I hereby thank all those who've tried to help me.

Andre Koster

andre@cv.ruu.nl

landers@zeus.mgmt.purdue.edu (Christopher Landers) (05/25/91)

In article <1991May22.181020.1993@uwasa.fi> ts@uwasa.fi (Timo Salmi) writes:
>
>my caps.exe from /pc/ts/tsutld18.arc at garbo.uwasa.fi
>archives works from the autoexec.bat without a hitch.  (LEDs are
>surely not required for turning the numlock on or off).  But don't
>take my word for it.  Try caps n+ on some XT.
>
>Prof. Timo Salmi

Programs such as this on XT's and some AT clones may cause the LED's to become
out of synch with that actual state of the toggle.  A little annoying, but
you can live with it.  

To get around this problem, I have a utility which puts a clock in the upper 
corner of the screen with arrows for the status of the toggles.  

If you don't have it Prof. Salmi, I'll send it to garbo.


-- 
   <================================><===============================>
   || Christopher Landers           || PURDUE UNIVERSITY - KRAN 708 ||
   || Krannert Computing Center     || West Lafayette, IN  47907    ||
   <=================== landers@zeus.mgmt.purdue.edu ================>