Make delphi communicate with other programs?

is there anyway to make delphi communicate with other programs?
not talking about the ShellApi
i mean for example send some strings to messanger, press a button in some other program like press "play" in AIMP ...
is that possible?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

If the "other program" is monitoring Windows Messages and you know what message to send to it, then, yes, it is possible.

If you are writing both apps, it is even easier.

A friend of mione and I did that with a Task Management application that interfaced to a Time Tracking application (he wrote most of the first one and I wrote most of the second, with the remaining portion being a collaboration ;-).  We set it up so that there were messages going to and from each of the apps.  That way, the Time Tracker would query the Task Management app for any new tasks, as well as providing updates on time spent on any apps.  The task Manager could do a similar query in reverse, getting the times and providing the tasks.

If you are doing the app development for both, you can really make it shine.  If, on the other hand, you have to deal only with the API's that the other app provides, you may well run into limitations.

In fact, if "the other" app isn't at all expecting messages, it will probably ignore whatever you try to send it.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Geert GOracle dbaCommented:
communicate with other programs ?

yes off course, that's why databases were invented

a program communicates with a databases
query's for information, updates it, show info to the user ...
You can use PostMessage and SendMessage to send Commands to another application (which is identified by its handle) such as button click.
i would do a DLL with delphi  and use inside that DLL INDY for sending and receiving strings via TCP

your delphi app  <----> DLL  [INDY + DELPHI]  (your delphi app)   <------>  DLL  [INDY + DELPHI]  (the other app)   <------>  the other app calling the DELPHI DLL functions

by this your delphi app and  the other app may be placed on diffferent computers , ....  
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.