Local i,tmp$;Define out varibles
This is a program to get the scancode and the name of the key pressed, but if i Press a special key like home or ctrl then it doesn't show up correctly. Is there a better way of doing this?
;;;;;;;main loop checkuing for keyhit escape
While Not KeyHit(1)
For i=0 To 256 ;repeat threw all the keys (and maybe to far )
If KeyHit(i) ;find what the keys scancode
tmp$=Chr$(GetKey());get the name of the key
Print i+","+tmp$ ;Print it all on the screen
EndIf
Next
Wend