Einzelnen Beitrag anzeigen
Alt 10.10.2012, 00:40   #73
leecher
Moderator
GETXKEY

E r g e b n i s / R e s u l t

Returns the scancode of a character in the console buffer, if available.

B e s c h r e i b u n g / D e s c r i p t i o n

If there is a character in the Keyboard-buffer, return its scancode as a result.


S y n t a x

Code:
scode = call ('GETXKEY')
P a r a m e t e r

R e t u r n s

Scancode of the character in the keyboard buffer, if any

B e i s p i e l / E x a m p l e

Code:
attach 'CONIO'
WHILE CALL("KBHIT") = false
  PUT AT 1,1 "HIT ME"
END WHILE
PUT AT 1,1 CALL ("GETXKEY")  ! i.e., if you press F1, returns 315 (0x100+0x3B = 0x13B)
detach 'CONIO'
leecher ist offline   Mit Zitat antworten