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)
|