TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: STEVE WESTCOT
from: CHRISTOPHER BUTLER
date: 1997-05-02 16:53:00
subject: Keyboard lock LEDs

Hello Steve!
Thursday April 24 1997 15:57, Steve Westcot wrote to All:
 SW> Is there a way to turn on and off the LEDs on the computer without
 SW> changing the status of the keyboard locks?  I wrote a program that is
 SW> suppose to marque(sp) the LEDs from left to right.  I am using Turbo
 SW> C++ 3.0.  I also converted code I saw in this echo for use in this
 SW> program.
-==-
I don't know how you would go about writing it (I might have a go later and
post it in here), but here is a snippet from Ralf Brown's MEMORY.LST:
====
MEM 0040h:0097h - KEYBOARD STATUS BYTE 2
Size:   BYTE
Bitfields for keyboard status byte 2:
Bit(s)  Description     (Table M033)
 7      =1 keyboard transmit error flag
 6      =1 LED update in progress
 5      =1 RESEND received from keyboard
 4      =1 ACK received from keyboard
 3      reserved, must be zero
 2      Caps Lock LED
 1      Num Lock LED
 0      Scroll Lock LED
====
So, in theory (I'll test it later), it should be possible by changing bits 0, 
1
and 2 of that location... but then again, you never know :)
I've just tried it, and I can't get it to work in Turbo C or QuickBasic, but
someone else might be able to...
Christopher
E-Mail: chris@db-bbs.coracle.com
--- FMail/Win32 1.22
---------------
* Origin: Death Butler BBS, +44-1582-620141, 24 Hours (2:257/135)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.