SendMessage / PostMessage take 4 parameters, the last two can be
anything you want for your custom message, e.g:
SendMessage(OtherApp.Handle, um_MyMessage, 5, 10);
In the other app it will receive it in a procedure such as:
procedure TSomeForm.MyMessage(var msg: TMessage);
begin
if msg.WParam = 5 and msg.LParam = 10 then begin
// whatever...
end;
end;
--
Wayne Niddery - WinWright Consulting
RADBooks - http://members.home.net/wniddery/
You have a Right to Free Speech, but not the right to make me listen,
nor to use my property as a soapbox.