1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Scan codes

Discussion in 'Support' started by Steve Fabian, Feb 28, 2012.

  1. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,523
    Likes Received:
    4
    Up through V8's HELP there was a page (keyscan.htm) that contained the scan codes returned by INKEY and some other commands. This page is no longer available. Why?
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,722
    Likes Received:
    80
    Because it's an obsolete concept. It would only be accurate for one language, one keyboard, and one keyboard driver.
     
  3. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,523
    Likes Received:
    4
    How do we find the return value of INKEY to determine what keypress is being reported without the table? Does one need to build a table manually for each keyboard one uses?
     
  4. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,722
    Likes Received:
    80
    You don't need scan codes for normal ASCII or Unicode keystrokes. If you want to get extended keystrokes (beyond the predefined ones like the F1-F12 keys), you're on your own. And whatever you come up with probably won't work on anybody else's system -- or on another one of your own systems. Or on the same system when you change your keyboard ...
     

Share This Page