Simulate KeyDown event

Posted in Manipulators

Use SendMessage procedure or Perform method for sending WM_CHAR message:

procedure TForm1.Button1Click(Sender: TObject);
begin
  SendMessage(Memo1.Handle,WM_CHAR,Ord('A'),0);
end;

Related