Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5956989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:20:12+00:00 2026-05-22T18:20:12+00:00

How to send & receive commands from other Delphi created applications? I want to

  • 0

How to send & receive commands from other Delphi created applications? I want to send command to another application that I’ve written.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T18:20:13+00:00Added an answer on May 22, 2026 at 6:20 pm

    Sender:

    unit Unit1;
    
    interface
    
    uses
      Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
      Dialogs, StdCtrls;
    
    const
      WM_MY_MESSAGE = WM_USER + 1;
    
    type
      TForm1 = class(TForm)
        Button1: TButton;
        procedure Button1Click(Sender: TObject);
      private
        { Private declarations }
      public
        { Public declarations }
      end;
    
    var
      Form1: TForm1;
    
    implementation
    
    {$R *.dfm}
    
    procedure TForm1.Button1Click(Sender: TObject);
    var
      h: HWND;
    begin
      h := FindWindow(nil, 'My Second Window');
      if IsWindow(h) then
        SendMessage(h, WM_MY_MESSAGE, 123, 520);
    end;
    
    end.
    

    Receiver:

    unit Unit1;
    
    interface
    
    uses
      Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
      Dialogs;
    
    const
      WM_MY_MESSAGE = WM_USER + 1;
    
    type
      TForm1 = class(TForm)
      private
        { Private declarations }
      protected
        procedure WndProc(var Message: TMessage); override;    
      public
        { Public declarations }
      end;
    
    var
      Form1: TForm1;
    
    implementation
    
    {$R *.dfm}
    
    procedure TForm1.WndProc(var Message: TMessage);
    begin
      inherited;
      case Message.Msg of
        WM_MY_MESSAGE:
          ShowMessageFmt('The other application sent the data %d and %d.', [Message.WParam, Message.LParam]);
      end;
    end;
    
    end.
    

    Make sure that the caption of the receiving form is ‘My Second Window’.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I often want to send sample apps to friends & colleages that work with
I want to send & receive msg using xmppframework in iphone so I am
I have a class that Handles send & receive over a socket between my
I want to have a message send & receive through 2 uni-direction FIFO Flow
I want to send SQL server Dashboard & Health Report to my client on
what is best way to send email from PHP using server authantication. Userid &
I send email through codeigniter, and the hotmail recipients receive an email that seems
I know only webservices,webrequest&webresponse,sockets are the ways to send/receive data. can someone one please
Considering MSMQ version 3.0 Hello. I want to send and read messages from a
I am writing a Kinect WPF application in C# to send gesture commands to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.