TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: DAVID ROPER
from: JOSE MEJUTO
date: 1995-11-07 13:24:00
subject: Scan Code Pgm

01 Nov 95 09:13, David Roper escrib¡a a All:
Hola David!
 DR>          I need to write a program that shows the SCAN CODE for the
 DR>          key pressed.  That's like 32 decimal for "D" and 83 decimal
 DR>          for "DEL".  Notice that these are not the same values that
 DR>          you get from INKEY.  Any clues appreciated.  Thanks.
 This small code may help you:
-----------------------====---------------------------------
Do
   Reg 1,&H1000
   Call Interrupt &H16
   If (Reg(0) And 64)=0 Then
      Print Hex$(Reg(1))
      If Reg(1)=&H11B Then end 'ESC Key
   End If
Loop
-----------------------====---------------------------------
 It only works with AT machines and over...
Saludotes,
       ,,,
      `0-0'  JOS (2:348/102)
     /-(_)-\ mejuto@sfdzuma.usc.es
--- FD2.12+ & GoldED 2.50+ & FE145+
---------------
* Origin: -=EDI=BBS=-// Santiago de Compostela //+34-81-502110 (2:348/102)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.