Inkey - Frage

Previous topic - Next topic

WPShadow

Hi!

Von den Keycodes bekomme für die Enter - Taste den Code 28 zurück!

Drücke ich ALT + 28, dann bekomme ich nichts oder ein Fragezeichen!

Gibt's da eine Variante Return und/oder Enter bei INKEY$() einzubinden?

GLG

W.
AMD X2 4600, 2 GB Ram, ATI X1950 XTX, XP PRO SP2: GLB Premium 10.beta_dingsi, <(´.´<) Kirby Dance (>`.`)>
http://lostrevenant.blogspot.com
alea iacta est

Moru

Keycodes gives a SCANCODE, alt+number accesses the ASCII codes.
Ascii 28 isn't a printable character normally.

I think you are looking for this:

Code (glbasic) Select
a$ = INKEY$()
IF a$ = "\n" THEN ...  // If enter or return pressed


WPShadow

Funktioniert!

Danke, das war genau das, was ich gesucht habe!!!!  :good: =D
AMD X2 4600, 2 GB Ram, ATI X1950 XTX, XP PRO SP2: GLB Premium 10.beta_dingsi, <(´.´<) Kirby Dance (>`.`)>
http://lostrevenant.blogspot.com
alea iacta est