capture event of an aplication A from another one B without acknowledge A

I have a Application A, that launches another application B, i want to capture the events of application B into A.The main issue is that i don't want to write any code in B for this.Is there any technique to do this?Thanks in advance...
[265 byte] By [sumitkchauhana] at [2007-11-27 0:25:35]
# 1
It isn't clear what 'event' is.But I would guess the answer to your question would in general be no.You might be able to use the debugging api. But at a minimum that is going to require a lot of work. It might not work at all.
jschella at 2007-7-11 22:23:26 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2

I mean,

I have to capture the events(window event /action event etc. ) of Aplication B in to A and I don't want to write any code any code in application B for this, is it possible?

if i need to write minimum lines of code in B, then what is best technique sockets/RMI or anything else ?

sumitkchauhana at 2007-7-11 22:23:26 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3

Capture as in duplicate them or stop them from getting to App A?

You can look at the Robot (java API.) That might or might not help.

If it doesn't then you probably can't do it in java.

> sockets/RMI

Those definitely would require something in B, so if it isn't already there then it won't work.

jschella at 2007-7-11 22:23:26 > top of Java-index,Java HotSpot Virtual Machine,Specifications...