[comp.os.msdos.programmer] Turn num-lock off and scroll-lock on

mfox@cipc1.Dayton.NCR.COM (Mark Fox) (03/27/91)

I'm looking for a programmatic way to turn the numeric lock off and
the scroll lock on when I power up my PC. Does anyone know a way to do this
other than manually.

-- 
Mark Fox   mfox@cipc1.Dayton.NCR.COM   Office (513) 445-6384
NCR Corporate Information Technology Integration Services

asalerno@cbnewsm.att.com (antonio.j.salerno..jr) (03/27/91)

In article <2235@cipc1.Dayton.NCR.COM> mfox@cipc1.Dayton.NCR.COM (Mark Fox) writes:
>
>I'm looking for a programmatic way to turn the numeric lock off and
>the scroll lock on when I power up my PC. Does anyone know a way to do this
>other than manually.
>
>-- 
>Mark Fox   mfox@cipc1.Dayton.NCR.COM   Office (513) 445-6384
>NCR Corporate Information Technology Integration Services

PC Magazine published a utility a few years back called LOX.
I use it to this day for exactly what you want (it toggles caps-lock as well).

I've got it at home, so if you have no luck finding it let me know...
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Tony Salerno                  "I'm stuck in '56 with a brain like swiss cheese 
ajs@corona.att.com             and YOU'RE having technical difficulties?"
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - Sam, Quantum Leap -=-=-=-=-=-=-=

ts@uwasa.fi (Timo Salmi) (03/28/91)

In article <2235@cipc1.Dayton.NCR.COM> mfox@cipc1.Dayton.NCR.COM (Mark Fox) writes:
>
>I'm looking for a programmatic way to turn the numeric lock off and
>the scroll lock on when I power up my PC. Does anyone know a way to do this
:

Yes.  Get /pc/ts/tsutld18.arc for the facility.

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.  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

dwayne@stratsft.UUCP (Dwayne Bailey) (04/11/91)

In article <2235@cipc1.Dayton.NCR.COM> mfox@cipc1.Dayton.NCR.COM (Mark Fox) writes:
>
>I'm looking for a programmatic way to turn the numeric lock off and
>the scroll lock on when I power up my PC. Does anyone know a way to do this
>other than manually.
>

The following DEBUG session will create the file NUMSCRL.COM to do what you
wanted:

	DEBUG NUMSCRL.COM
	file not found
	-a
	-XXXX:0100 mov ax,40
	-XXXX:0103 mov ds,ax
	-XXXX:0105 mov al,[40]
	-XXXX:0108 and al,df
	-XXXX:010A or al,10
	-XXXX:010C mov [17],al
	-XXXX:010F ret
	-XXXX:0110 
	-r cx
	CX 0000
	-10
	-w
	Writing 0010 bytes
	-q
	
You have now created NUMSCRL.COM, which will turn off the NumLock and turn
on the ScrollLock.

========================================================================
..!uunet!basfpac!stratsft!dwayne

Dwayne Bailey      +  Strategic Software is ME, so my opinions ARE those
Strategic Software +  of my company!
========================================================================