Link to home
Start Free TrialLog in
Avatar of Kaspy
Kaspy

asked on

DELPI 5 + NEED HELP GUYS Sendin command to anotha applicaton

Guys, is it possible to send a command to anotha application? in Delphi...how?
and is it possible to trace changes in anotha application?
Avatar of sfock
sfock

yes there are severeal possibilities to send commands to other applications.
You can make a api sendMessage if you have the handle of the other application
You can implement a COM interface in the other application.
You can open a TCP/IP or UDP socket on the other connection
a.s.f.
to determine what will be right fitting it would be nessesary to know what you are planning to do.

tracing changes in another application? I am not sure what you mean ...

you can exchange commands or data between two or more applications by using windows messages, but that should be prepared in the two applications, I mean if u send a message from one application to another, the recpient application should accept capturing messages...
or u can build a connection socket, and make a connection channel between the two aplications through the socket.
Avatar of Kaspy

ASKER

Hhmmm...guys thx again for ur attention....
i tried Postmessage ....but i constantly recieve error...
I can't prepare anotha application to recieve my commands...:( umm...i try to explain a bit more....like if i click on otha application n type anytin n press enter:) ...this leads to exucution or failure of the command...and i'm askin how can i make my program to do this?
Avatar of Kaspy

ASKER

and by tracin..i meant...like if i finally sent command and it worked...program responds...n can my program get that respond somehow?
Avatar of Kaspy

ASKER

sendmessage(findwindow(nil,'name', "CTRL+N",0,0));
i get error here....tried without ""..tried everything:) doesn't work:(
ASKER CERTIFIED SOLUTION
Avatar of sfock
sfock

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Kaspy:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
i do care ;-)