Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to communicate with Netscape Navigator?

2 views
Skip to first unread message

Erik Leunissen

unread,
Jul 26, 2002, 6:10:02 PM7/26/02
to
L.S.

I would like to send from within a Tcl interpreter a command to an
already launched instance of Netscape Navigator to make it fetch a URL
from within Tk.
Would such a thing be possible? If so, I'd appreciate
very much a pointer to further particulars.

Please note that I know how to launch a *new instance* of Netscape
Navigator to let it fetch a URL. My question specifically adresses an
already running process of Netscape Navigator.

I would like to be able to do this under Linux, as well as Windows.


Thanks in advance for any help,

Erik Leunissen
==============

--

To send mail, strip the two q's from the e-mail address.

Jeffrey Hobbs

unread,
Jul 27, 2002, 5:17:55 PM7/27/02
to
Erik Leunissen wrote:
> I would like to send from within a Tcl interpreter a command to an
> already launched instance of Netscape Navigator to make it fetch a URL
> from within Tk.

netscape has capabilities for this already. On Windows, you can talk
to it with DDE (use the built-in Tcl dde package), and on Unix IIRC
you exec netscape with the -remote flag, and it tries to use an
existing instance if it finds one.

--
Jeff Hobbs The Tcl Guy
Senior Developer http://www.ActiveState.com/
Tcl Support and Productivity Solutions
Join us in Sept. for Tcl'2002: http://www.tcl.tk/community/tcl2002/

Mike Hall

unread,
Jul 27, 2002, 8:28:17 PM7/27/02
to
Erik Leunissen wrote:

> I would like to send from within a Tcl interpreter a command to an
> already launched instance of Netscape Navigator to make it fetch a URL
> from within Tk.

$ netscape -?

...
-remote <remote-command> to execute a command in an already-running
Netscape process. For more info, see
http://home.netscape.com/newsref/std/x-remote.html

...

--
Mike Hall
http://www.enteract.com/~mghall

Erik Leunissen

unread,
Jul 28, 2002, 4:09:31 PM7/28/02
to
Thanks a lot both of you (Jeffrey, Mike),

Erik

Jochem Huhmann

unread,
Jul 28, 2002, 4:53:03 PM7/28/02
to
* Jeffrey Hobbs <Je...@ActiveState.com> wrote:
> Erik Leunissen wrote:
> > I would like to send from within a Tcl interpreter a command to an
> > already launched instance of Netscape Navigator to make it fetch a URL
> > from within Tk.
>
> netscape has capabilities for this already. On Windows, you can talk
> to it with DDE (use the built-in Tcl dde package), and on Unix IIRC
> you exec netscape with the -remote flag, and it tries to use an
> existing instance if it finds one.

Yes, it does, eventually. There is a Tcl-extension that does the same
thing (communicating with Netscape using X Window Properties) without
starting another instance of Netscape, which works much faster (almost
instantly and without any overhead). I haven't tried it with recent
versions of Tcl/Tk, though.

http://www.neosoft.com/tcl/ftparchive/sorted/net/netscape-remote-v1.2/


Jochem

lvi...@yahoo.com

unread,
Jul 29, 2002, 9:38:51 AM7/29/02
to

According to Jochem Huhmann <j...@gmx.net>:
: I haven't tried it with recent

I have used it with older versions of Tcl/Tk and older versions of Netscape.
I don't know if it still works with Netscape 6/7 though.

--
Tcl'2002 Sept 16, 2002, Vancouver, BC http://www.tcl.tk/community/tcl2002/
Even if explicitly stated to the contrary, nothing in this posting
should be construed as representing my employer's opinions.
<URL: mailto:lvi...@yahoo.com > <URL: http://www.purl.org/NET/lvirden/ >

0 new messages