Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Alt, Ctrl, Shift Status after I've installed my kb handler

0 views
Skip to first unread message

William Cole

unread,
Dec 30, 1994, 12:22:25 AM12/30/94
to
Can someone please tell me how I can obtain the shift status of ALT, CTRL
and SHIFT after I've installed my own Keyboard handler? I would usually
use int 16h function 2 but it's not working in this case. I don't
understand it. Thanks

Billy
wpc...@cts.com

Russell Hansen

unread,
Dec 30, 1994, 11:11:43 AM12/30/94
to


There are two "keyboard shift flags"...located at 0040h:0017h and
0040h:0018h. Everytime you press or release the shift, alt, ctrl,
ins, caps lock, numlock, scroll lock or sys request key, the int
09h handler changes bits in these flags. The following table give
the details about the individual bits of 0040h:0017h. the other
shift flag gives more detailed info (such as when the keys are
pressed/release) about insert, caps lock, num lock, scroll lock,
pause (ctrl-numlock), sys request, and individual alt and ctrl
keys. I'm not including it cuz it's alot of typing, but if you
want/need this info, let me know and I'll mail it to ya...

Russell Hansen rha...@masterkey.win.net

---- 0040h:0017h ----

Bit # Meaning
-------------------------------------------------------------------
76543210
-------------------------------------------------------------------
^^^^^^^^
||||||||
|||||||+----------> 0: the right shift key is not depressed
||||||| 1: the right shift key is depressed
||||||+-----------> 0: the left shift key is not depressed
|||||| 1: the left shift key is depressed
|||||+------------> 0: the ctrl key is not depressed
||||| 1: the ctrl key is depressed
||||+-------------> 0: the alt key is not depressed
|||| 1: the alt key is depressed
|||+--------------> 0: scroll lock is inactive
||| 1: scroll lock is active
||+---------------> 0: Num lock is inactive
|| 1: Num lock is active
|+----------------> 0: caps lock is inactive
| 1: caps lock is active
+-----------------> 0: insert is inactive
1: insert is active

0 new messages