Re: Making IE and a standalone Java application communicate...

From: Patrick Ma (pma_at_partssolution.com)
Date: 08/17/04


Date: Tue, 17 Aug 2004 20:28:41 GMT

Igor,

Thanks very much for the response.

>> 1. Is it possible to write an ActiveX control to be embedded in a web
>> page so that when an URL link is clicked in this web page, the
>> ActiveX control can be notified of the click and get the clicked URL
>> string?
> Yes it is possible.

Please verify if this is the correct approach.
1. Write a GUI-less ActiveX control.
2. Embed this control in a web page.
3. In the initialization code of the ActiveX control, it can register itself
as a listener of the *currently run IE instance*.
4. When a URL link is clicked in this instance of IE, the ActiveX control
will be notified.

>
>> 2. If the above is possible, can this ActiveX control in turn send
>> the intercepted URL string to an external application, in this case,
>> a Java application? When the Java application is started, is it
>> possible to find and connect to the ActiveX control so that it can
>> register itself as a listener?
>
> Should be possible, but note that I don't know much about Java and
> interprocess communication mechanisms it might support.

There are Java to COM mechanism available that can let Java call COM and let
Java receive events from COM. One thing I am not sure is that given the
above ActiveX control, how can Java *find and connect* to it and register as
a event listener. In other words, is there an OS mechanism for a process to
find and connect to a running COM server?

Patrick Ma



Relevant Pages

  • Making IE and a standalone Java application communicate...
    ... I would like to intercept an URL link clicked in IE and send the URL string ... Is it possible to write an ActiveX control to be embedded in a web page ... intercepted URL string to an external application, in this case, a Java ...
    (microsoft.public.win32.programmer.ole)
  • Re: Anyone know about ActiveX in Java?
    ... I am trying to use the ActiveX control via ... > Java. ... >> Are you trying to build an ActiveX container in Java? ... Convert the Java applet to a servlet and use Internet Explorer as ...
    (comp.lang.java)
  • Re: Java and ActiveX Integration
    ... Using an ActiveX control as a Java class ... Manipulating a Java applet through ActiveX scripting ...
    (comp.lang.java.programmer)
  • URGENT: .Net Controls Vs Java Applets
    ... My company is making a decision about using Java or .Net. ... Microsoft based ... and we have a specific ActiveX control that we have to turn into a Java ... but I am still be able to run Java Applets. ...
    (microsoft.public.dotnet.framework)
  • Re: Java and ActiveX Integration
    ... Using an ActiveX control as a Java class ... (jspc compiles from JSP to Java, ... interpret, but ... ...
    (comp.lang.java.programmer)