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?
and is it possible to trace changes in anotha application?
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.
or u can build a connection socket, and make a connection channel between the two aplications through the socket.
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?
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?
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?
ASKER
sendmessage(findwindow(nil ,'name', "CTRL+N",0,0));
i get error here....tried without ""..tried everything:) doesn't work:(
i get error here....tried without ""..tried everything:) doesn't work:(
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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 ;-)
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 ...