home *** CD-ROM | disk | FTP | other *** search
- Path: 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
-
-
- 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
-