My problem: Two Delphi applications, both running at the same time, and I want something like that:
function SendCommandToOtherApplication(command: String): String;
to remotely make the other application execute code that has access to all this applications objects. Return value would be nice, but is not essential.
I don’t want to use a TCP Server/Client so the users don’t get firewall notifications (and answer them wrongly).
I tried it with a 1×1 pixel window that has a TButton and a TEdit on it. Other application finds the window with its title, writes the command in the TEdit, sends a click to that button.
That works – until the application is minimized. Then the button click seems to get lost. I tried to untie the 1×1 window from TApplication with Params.WndParent := GetDesktopWindow, but then my 1×1 window gets a taskbar entry, and I do not want that.
So I’m looking either for a way to make the 1×1 window always receive messages without a taskbar entry, or some totally different approach I am not aware of.
Thanks in advance!