Article View: comp.os.msdos.programmer
Article #859Reading ALT keys with bioskey in TC++?
From: Mark Harrison
Date: Tue, 25 Aug 1992 18:42
Date: Tue, 25 Aug 1992 18:42
21 lines
1528 bytes
1528 bytes
Hi. I am reading ALT+<key> from the keyboard with bioskey (in TC++ 3.0.)
But that gives me values that map to the physical layout of the keyboard.
Is there an easy way to translate this value into one that will tell me
the Ascii code of the key? For instance, how do I transform 0x3100
(ALT+N) to get the ascii code of N? Will I need to write a function that
will do this for all the ALT values I want to check for? If so, then no
problem. I just don't want to reinvent any wheels.
If it helps to understand the problem, I'm writing a GUI for DOS. I have
all my menus set up with a single character highlight. I want to be able
to type ALT+F to open the File menu for example. So I need to know if an
'F' was typed.
Any help will be greatly appreciated.
--
=============================================================================
Mark Harrison | "We are the Priests, of the Temples of Syrinx
harrison@sun.lclark.edu | Our great computers fill the hallowed halls."
-- Me | -- Rush
Technical Details
Message-ID:
<1992Aug25.184207.7825@lclark.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!ogicse!lclark!harrisonShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!ogicse!lclark!harrison From: harrison@sun.lclark.edu (Mark Harrison) Newsgroups: comp.os.msdos.programmer Subject: Reading ALT keys with bioskey in TC++? Message-ID: <1992Aug25.184207.7825@lclark.edu> Date: 25 Aug 92 18:42:07 GMT Article-I.D.: lclark.1992Aug25.184207.7825 Sender: harrison@lclark.edu (Mark Harrison) Organization: Lewis & Clark College, Portland OR Lines: 21