I have two processes A and B. Process A is a VCL forms application containing a form TMainForm
. Process B is a DLL from which I want to remote-control this form. Something along the lines of (in process B):
MainForm := TMainForm.Create (nil);
MainForm.Handle := FindWindow ('TMainForm', 'MainForm Title'); // does not compile
// These two lines should remote-control the form in process A
MainForm.Edit1.Text := 'Test';
MainForm.Button1.Click;
Any ideas if and how this could be done?