yanix
2007-09-20 15:09:49
It will just run forever when i press run and it will just add +1 to proggy when i press a key… easy… nothing else needed:D
2007-09-20 15:09:49
2007-09-24 17:07:37
Program DeathCounter;
Var
X : Integer;
Const
KEY = 'a';
Function IsKeyUp(C:Char): Boolean;
Begin
If (Not(IsKeyDown(C))) Then
Begin
Result := True;
End;
End;
Begin
Repeat
If (IsKeyDown(KEY)) Then
Begin
X := X + 1;
ClearDeBug;
Writeln(IntToStr(X)+'.')
Repeat
Wait(30)
Until(IsKeyUp(KEY))
End Else
Wait(100)
Until(false)
End.