home *** CD-ROM | disk | FTP | other *** search
-
- ΓòÉΓòÉΓòÉ 1. The Netscape DDE Interface ΓòÉΓòÉΓòÉ
-
- Notices
-
- Netscape DDE Interface
-
-
- ΓòÉΓòÉΓòÉ 2. Notices and Legalese ΓòÉΓòÉΓòÉ
-
- Disclaimer
-
- Comments and suggestions
-
- Trademarks
-
-
- ΓòÉΓòÉΓòÉ 2.1. Licence And Disclaimer ΓòÉΓòÉΓòÉ
-
- September 1998
-
- With V0.80, the licence agreement of XFolder has changed.
-
- Since the Netscape DDE Interface is now exclusively a part of the XFolder
- package, the XFolder license also applies to the Netscape DDE Interface.
-
- XFolder is freeware under the GNU General Public Licence (GPL), as it comes in
- the COPYING file of the XFolder distribution. For more information, refer to
- the "Notices" section of the XFolder Online Reference.
-
- (C) Copyright 1997-98 Ulrich MФller.
-
-
- ΓòÉΓòÉΓòÉ 2.2. Contact -- Comments and Suggestions ΓòÉΓòÉΓòÉ
-
- Ulrich MФller
- e-mail: ulrich.moeller@rz.hu-berlin.de
- www: http://www2.rz.hu-berlin.de/~h0444vnd/os2.htm
-
- The above WWW address also carries the newest version of XFolder and other
- software, including the OS/2 CommandPak, which will enhance your command line
- environment.
-
-
- ΓòÉΓòÉΓòÉ 2.3. Trademarks ΓòÉΓòÉΓòÉ
-
- The following terms are trademarks of the IBM Corporation in the United States
- or other countries or both:
-
- IBM
- Operating System/2
- OS/2
- PM
- Presentation Manager
- System Object Model
- Workplace Shell
-
- Netscape and Netscape Navigator are trademarks of Netscape Communications
- Corporation.
-
- Other company, product, or service names may be trademarks or service marks of
- others. They are not specifically marked.
-
- Any mention of a product in this publication does not constitute an endorsement
- or affiliation.
-
-
- ΓòÉΓòÉΓòÉ 3. Netscape DDE ΓòÉΓòÉΓòÉ
-
- Introduction
-
- Installation
-
- Command Line Parameters
-
- Tips & Tricks
-
- How it works
-
- Revision history
-
-
- ΓòÉΓòÉΓòÉ 3.1. Introduction ΓòÉΓòÉΓòÉ
-
- Are you too annoyed too by the fact that double-clicking on a URL or HTML file
- on your hard disk will always start a new instance of NETSCAPE.EXE, although
- Netscape is already running? This is a waste of time, memory, and system
- resources.
-
- The Netscape DDE Interface is the solution. You can associate it with HTML and
- URL files, so that when you double-click on them, either Netscape will be
- started or, if it's already running, the HTML file or URL will simply be passed
- to the running instance.
-
-
- ΓòÉΓòÉΓòÉ 3.2. Installation ΓòÉΓòÉΓòÉ
-
- Place the NETSCDDE.EXE file whereever you want. Create a program object for it
- and associate *.HTM and *.HTML files with it. Put the command line parameters
- you wish in the "Parameters" list of the program object.
-
- If you have received NetscapeDDE as part of the XFolder package, no additional
- installation is necessary. XFolder will have integrated NetscapeDDE into its
- default configuration already.
-
- You can also set up NETSCDDE.EXE as your default browser in the OS/2 Warp 4 URL
- objects.
-
- Requirements: Either OS/2 Warp 3 or 4 with Netscape installed.
-
-
- ΓòÉΓòÉΓòÉ 3.3. Command Line Parameters ΓòÉΓòÉΓòÉ
-
- The Netscape DDE Interface is configured by using command line parameters. This
- is not very intuitive, but flexible. Besides, it means less work for me. ;-)
- The command line syntax is (simply double-click on NETSCDDE.EXE for a summary):
-
- netscdde [-[x|X]n]] [-p <exe>] [-P <params>] [-m[h]] <URL>
-
- As you can see, <URL> is the only required parameter.
-
- The parameters mean the following:
-
- <URL>
- a Uniform Resource Locator; you can even open files on the Internet
- with NETSCDDE by specifying http:// or ftp:// and such. This is why
- NETSCDDE also works with URL objects. For local HTML files, Netscape
- tolerates the plain path and file name, so that a simple
- C:\docs\text.html will open this file in Netscape. Example:
-
- NETSCDDE C:\docs\text.html
-
- Options:
-
- -x
- If Netscape is not running yet, do NOT open a new instance of it.
- NETSCDDE will then simply exit.
- -X
- If Netscape is not running yet, DO open a new instance of it without
- asking.
-
- If neither -x nor -X is specified, NETSCDDE will prompt you for
- whether you wish to open a new instance of Netscape.
- -n
- Request a new browser window for <URL> from Netscape, if it's
- already running. (If Netscape is not yet running and a new instance
- is opened, a new window will always be opened, of course.) Per
- default, <URL> will be opened in the last active Netscape browser
- window.
- -p <exe>
- Here you can specify the full path of NETSCAPE.EXE, if it's not on
- your PATH. This is only evaluated if Netscape is not yet running and
- needs to be started. Per default, NETSCDDE will search the PATH for
- NETSCAPE.EXE. Example:
-
- NETSCDDE -p "C:\NETSCAPE\NETSCAPE.EXE" <URL>
-
- The use of quotes is only neccessary for paths which contain spaces,
- but never hurts.
-
- For an interesting side-effect of this option, check the "Tips &
- Tricks" section.
- -P <params>
- Here you can specify command line parameters for a newly opened
- instance of Netscape, such as "-3" for Netscape 3.0 identification
- (see the Netscape documentation for details.) Example:
-
- -P "-3"
-
- Again, the use of quotes is only neccessary if the parameter list
- contains spaces, but never hurts.
- -m
- start Netscape minimized.
- -mh
- start Netscape minimized and hidden (see the "Tips & Tricks"
- section).
-
-
- ΓòÉΓòÉΓòÉ 3.4. Tips & Tricks ΓòÉΓòÉΓòÉ
-
- 1. Here's an unintended, but maybe useful side-effect: Since OS/2 can share
- its DDE environment with a Win-OS/2 session, NETSCDDE can even pass URLs
- to a running Win-OS/2 copy of Netscape Navigator. This includes
- Communicator (Netscape 4). The only thing you have to do is enable
- WIN_DDE in the Win-OS/2 session settings of your Windows Netscape program
- object. By specifying your Windows Netscape EXE file with -p <exe> (see
- above), NETSCDDE.EXE even provides for proper WPS integration of Windows
- Netscapes.
-
- 2. You can now (V1.1) also specify a .CMD file with -p and -P to have
- certain commands executed before and after Netscape is actually started.
- You should specify the -m or -mh options so that no ugly VIO window
- appears. Here is an example NETSCAPE.CMD:
-
- @echo off
- rem do some initialization here, e.g. change directory
- cd D:\WebStuff
- rem now call Netscape
- netscape.exe
- rem now the .cmd file is put to sleep until Netscape is
- rem terminated; subsequent calls to NETSCDDE will contact
- rem this running Netscape instance
- rem after Netscape is terminated, execute this:
- call cleanup.cmd
- rem or whatever you want
-
- Thanks, Marcus de Geus, for this suggestion.
-
- 3. Here's a trick from Chris Wenham, senior editor of OS/2 e-zine, found in
- the SmartSuite Mailing List (smartsuite-os2@makelist.com):
-
- "If you need to change the web browser that Smartsuite apps call when you
- click one of their Internet buttons (like Organizer's button to go to the
- Almanack page), or send the URL to the currently running copy of Netscape
- instead of launching a new instance, you need to do this:
-
- Launch REGEDIT2.EXE in the /OS2/SYSTEM directory. Expand the
- HKEY_CLASSES_ROOT tree. Scroll down to "http" and expand it all the way
- down (through "shell" and "open") until you come to "command".
-
- Right click on the data in the "(Default)" key, pick "Modify", and change
- the path to the new browser, making sure it's followed with a "%1" (which
- represents the URL). Close RegEdit.
-
- You shouldn't need to reboot, but you might need to restart any SS
- components that are running.
-
- Chris then states that you can enter NETSCDDE.EXE as your browser in this
- section.
-
-
- ΓòÉΓòÉΓòÉ 3.5. How It Works ΓòÉΓòÉΓòÉ
-
- This is done with the use of Dynamic Data Exchange (DDE), for the OS/2 version
- of Netscape 2.02 understands just the same DDE commands as the Windows versions
- do. These commands are (horribly) documented at
- http://developer.netscape.com/library/documentation/communicator/DDE
-
- These documents assume a detailed knowledge of how DDE works, and believe me,
- some things ARE different on OS/2.
-
-
- ΓòÉΓòÉΓòÉ 3.6. NetscDDE Revision History ΓòÉΓòÉΓòÉ
-
- V1.2 (July 8, 1998)
-
- Finally created this INF file for documentation. NetscDDE is now exclusively
- distributed with XFolder and is published under the GNU General Public Licence.
-
- V1.1 (May 15, 1998)
-
- NETSCDDE can now start any program specified with -p, for example a batch file.
- New -m and -h parameters.
-
- V1.02 (May 1, 1998)
-
- NETSCDDE does not any longer block the PM while waiting for Netscape to answer.
-
- V1.01 (March 8, 1998) Bugfix for local files which contain spaces.
-
- V1.0 (March 5, 1998)
-
- Initial release.
-
-
- ΓòÉΓòÉΓòÉ 4. Resources on the Internet ΓòÉΓòÉΓòÉ
-
- This chapter contains all external links referenced in this book. Each link
- contained herein is an Unified Resource Locator (URL) to a certain location on
- the Internet. Simply double-click on one of them to launch Netscape with the
- respective URL.
-
-
- ΓòÉΓòÉΓòÉ 4.1. http://developer.netscape.com/library/documentation/communicator/DDE ΓòÉΓòÉΓòÉ
-
- Click below to launch Netscape with this URL:
-
- http://developer.netscape.com/library/documentation/communicator/DDE
-
-
- ΓòÉΓòÉΓòÉ 4.2. http://www.os2ezine.com ΓòÉΓòÉΓòÉ
-
- Click below to launch Netscape with this URL:
-
- http://www.os2ezine.com
-
-
- ΓòÉΓòÉΓòÉ 4.3. http://www2.rz.hu-berlin.de/~h0444vnd/os2.htm ΓòÉΓòÉΓòÉ
-
- Click below to launch Netscape with this URL:
-
- http://www2.rz.hu-berlin.de/~h0444vnd/os2.htm
-