Baked0420
2010-08-22 15:55:24
I can't find a way to get which key is pressed returned. Google showed ReadKey which returns a char. I saw a script online like:
wasn't that exactly, but that's what they were doing basically. Could you add ReadKey, or if it's in there already what's it called?
var
x: Integer;
key: char;
begin
key:= ReadKey;
case key of
'a': exit;
'b': Inc(x);
end;
end.
wasn't that exactly, but that's what they were doing basically. Could you add ReadKey, or if it's in there already what's it called?