home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / msdos / programm / 8793 < prev    next >
Encoding:
Internet Message Format  |  1992-08-25  |  1.5 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!ogicse!lclark!harrison
  2. From: harrison@sun.lclark.edu (Mark Harrison)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Reading ALT keys with bioskey in TC++?
  5. Message-ID: <1992Aug25.184207.7825@lclark.edu>
  6. Date: 25 Aug 92 18:42:07 GMT
  7. Article-I.D.: lclark.1992Aug25.184207.7825
  8. Sender: harrison@lclark.edu (Mark Harrison)
  9. Organization: Lewis & Clark College, Portland OR
  10. Lines: 21
  11.  
  12.  
  13. Hi.  I am reading ALT+<key> from the keyboard with bioskey (in TC++ 3.0.)
  14. But that gives me values that map to the physical layout of the keyboard. 
  15. Is there an easy way to translate this value into one that will tell me
  16. the Ascii code of the key?  For instance, how do I transform 0x3100
  17. (ALT+N) to get the ascii code of N?  Will I need to write a function that
  18. will do this for all the ALT values I want to check for?  If so, then no
  19. problem.  I just don't want to reinvent any wheels.
  20.  
  21. If it helps to understand the problem, I'm writing a GUI for DOS.  I have
  22. all my menus set up with a single character highlight.  I want to be able
  23. to type ALT+F to open the File menu for example.  So I need to know if an
  24. 'F' was typed. 
  25.  
  26. Any help will be greatly appreciated.
  27.  
  28. -- 
  29. =============================================================================
  30. Mark Harrison           |  "We are the Priests, of the Temples of Syrinx
  31. harrison@sun.lclark.edu |   Our great computers fill the hallowed halls."
  32.               -- Me     |                                    -- Rush
  33.