<div align='center'>Witam.
Mimo wszystko mam Problem.
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space
re;overflow:auto'>unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
procedure FormDestroy(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
Hook : Integer;
MessageBuffer :TEventMsg;
implementation
{$R *.dfm}
procedure TForm1.FormDestroy(Sender: TObject);
begin
UnHookWindowsHookEx(Hook); // wprowadzamy
end;
function Play(Code: integer; wParam, lParam: Longint): Longint; stdcall;
begin
case Code of
HC_ACTION: begin
MessageBuffer:=PEventMsg(lParam)^;
if MessageBuffer.message = wm_KeyDown then
begin
Form1.Memo1.Text:=Form1.Memo1.Text+chr(MessageBuffer.paraml);
Result:=0;
end;
end;
else
begin
Result := CallNextHookEx(Hook, Code, wParam, lParam);
end;
end;
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
Hook:=SetWindowsHookEx(wh_journalrecord,play,HInstance,0);
end;
end.</div>
A wyświetla mi:
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space
re;overflow:auto'>Form1.Memo1.Text:=Form1.Memo1.Text+chr(MessageBuffer.paraml);</div>
Nie wiem co robię źle, ale ku dołu okna "Unit1.pas" wyświetlają mi się błędy :
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space
re;overflow:auto'>[Error] Unit1.pas(43): Undeclared identifier: 'Memo1',
[Error] Unit1.pas(43): Missing operator or semicolon,
[Error] Unit1.pas(43): Incompatible types,
[Fatal Error] Project1.dpr(5): Could not compile used unit 'Unit1.pas'.
</div>
Z góry dziękuje za pomoc.
Pozdrawiam
Lamer
xD </div>