ti.teg.tnod.I Posted May 11, 2011 Share Posted May 11, 2011 How do I check to see if the enter / return key is pressed? [scar] IsKeyDown(chr(13)); [/scar] Causes internal error 20. Quote Link to comment Share on other sites More sharing options...
Wanted Posted May 11, 2011 Share Posted May 11, 2011 How do I check to see if the enter / return key is pressed? IsKeyDown(chr(13)); Causes internal error 20. edit: Actually begin repeat if (IsKeyDown(Chr(13))) then WriteLn('there'); until (False); end. Works for me ---- There's IsFunctionKey but I don't think you can use return key function IsFunctionKeyDown(Key: Byte): Boolean; Checks if the given function key is down. Meanings of Key: 0: SHIFT 1: CONTROL 2: ALT 3: LEFT SHIFT 4: LEFT CONTROL 5: LEFT ALT 6: RIGHT SHIFT 7: RIGHT CONTROL 8: RIGHT ALT Maybe try Chr(10) Quote Link to comment Share on other sites More sharing options...