home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1999 February / PCO_0299.ISO / filesbbs / os2 / xfolder.arj / XFLD082.ZIP / netscdde.inf (.txt) < prev    next >
Encoding:
OS/2 Help File  |  1998-09-29  |  14.9 KB  |  293 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. The Netscape DDE Interface ΓòÉΓòÉΓòÉ
  3.  
  4.      Notices 
  5.  
  6.      Netscape DDE Interface 
  7.  
  8.  
  9. ΓòÉΓòÉΓòÉ 2. Notices and Legalese ΓòÉΓòÉΓòÉ
  10.  
  11.      Disclaimer 
  12.  
  13.      Comments and suggestions 
  14.  
  15.      Trademarks 
  16.  
  17.  
  18. ΓòÉΓòÉΓòÉ 2.1. Licence And Disclaimer ΓòÉΓòÉΓòÉ
  19.  
  20. September 1998 
  21.  
  22. With V0.80, the licence agreement of XFolder has changed. 
  23.  
  24. Since the Netscape DDE Interface is now exclusively a part of the XFolder 
  25. package, the XFolder license also applies to the Netscape DDE Interface. 
  26.  
  27. XFolder is freeware under the GNU General Public Licence (GPL), as it comes in 
  28. the COPYING file of the XFolder distribution. For more information, refer to 
  29. the "Notices" section of the XFolder Online Reference. 
  30.  
  31. (C) Copyright 1997-98 Ulrich M╨ñller. 
  32.  
  33.  
  34. ΓòÉΓòÉΓòÉ 2.2. Contact -- Comments and Suggestions ΓòÉΓòÉΓòÉ
  35.  
  36.      Ulrich M╨ñller
  37.      e-mail: ulrich.moeller@rz.hu-berlin.de
  38.      www:    http://www2.rz.hu-berlin.de/~h0444vnd/os2.htm
  39.  
  40. The above WWW address also carries the newest version of XFolder and other 
  41. software, including the OS/2 CommandPak, which will enhance your command line 
  42. environment. 
  43.  
  44.  
  45. ΓòÉΓòÉΓòÉ 2.3. Trademarks ΓòÉΓòÉΓòÉ
  46.  
  47. The following terms are trademarks of the IBM Corporation in the United States 
  48. or other countries or both: 
  49.  
  50. IBM 
  51. Operating System/2 
  52. OS/2 
  53. PM 
  54. Presentation Manager 
  55. System Object Model 
  56. Workplace Shell 
  57.  
  58. Netscape and Netscape Navigator are trademarks of Netscape Communications 
  59. Corporation. 
  60.  
  61. Other company, product, or service names may be trademarks or service marks of 
  62. others. They are not specifically marked. 
  63.  
  64. Any mention of a product in this publication does not constitute an endorsement 
  65. or affiliation. 
  66.  
  67.  
  68. ΓòÉΓòÉΓòÉ 3. Netscape DDE ΓòÉΓòÉΓòÉ
  69.  
  70. Introduction 
  71.  
  72. Installation 
  73.  
  74. Command Line Parameters 
  75.  
  76. Tips & Tricks 
  77.  
  78. How it works 
  79.  
  80. Revision history 
  81.  
  82.  
  83. ΓòÉΓòÉΓòÉ 3.1. Introduction ΓòÉΓòÉΓòÉ
  84.  
  85. Are you too annoyed too by the fact that double-clicking on a URL or HTML file 
  86. on your hard disk will always start a new instance of NETSCAPE.EXE, although 
  87. Netscape is already running? This is a waste of time, memory, and system 
  88. resources. 
  89.  
  90. The Netscape DDE Interface is the solution. You can associate it with HTML and 
  91. URL files, so that when you double-click on them, either Netscape will be 
  92. started or, if it's already running, the HTML file or URL will simply be passed 
  93. to the running instance. 
  94.  
  95.  
  96. ΓòÉΓòÉΓòÉ 3.2. Installation ΓòÉΓòÉΓòÉ
  97.  
  98. Place the NETSCDDE.EXE file whereever you want. Create a program object for it 
  99. and associate *.HTM and *.HTML files with it. Put the command line parameters 
  100. you wish in the "Parameters" list of the program object. 
  101.  
  102. If you have received NetscapeDDE as part of the XFolder package, no additional 
  103. installation is necessary. XFolder will have integrated NetscapeDDE into its 
  104. default configuration already. 
  105.  
  106. You can also set up NETSCDDE.EXE as your default browser in the OS/2 Warp 4 URL 
  107. objects. 
  108.  
  109. Requirements: Either OS/2 Warp 3 or 4 with Netscape installed. 
  110.  
  111.  
  112. ΓòÉΓòÉΓòÉ 3.3. Command Line Parameters ΓòÉΓòÉΓòÉ
  113.  
  114. The Netscape DDE Interface is configured by using command line parameters. This 
  115. is not very intuitive, but flexible. Besides, it means less work for me. ;-) 
  116. The command line syntax is (simply double-click on NETSCDDE.EXE for a summary): 
  117.  
  118. netscdde [-[x|X]n]] [-p <exe>] [-P <params>] [-m[h]] <URL> 
  119.  
  120. As you can see, <URL> is the only required parameter. 
  121.  
  122. The parameters mean the following: 
  123.  
  124.  <URL> 
  125.            a Uniform Resource Locator; you can even open files on the Internet 
  126.            with NETSCDDE by specifying http:// or ftp:// and such. This is why 
  127.            NETSCDDE also works with URL objects. For local HTML files, Netscape 
  128.            tolerates the plain path and file name, so that a simple 
  129.            C:\docs\text.html will open this file in Netscape. Example: 
  130.  
  131.            NETSCDDE C:\docs\text.html 
  132.  
  133.  Options: 
  134.  
  135.  -x 
  136.            If Netscape is not running yet, do NOT open a new instance of it. 
  137.            NETSCDDE will then simply exit. 
  138.  -X 
  139.            If Netscape is not running yet, DO open a new instance of it without 
  140.            asking. 
  141.  
  142.            If neither -x nor -X is specified, NETSCDDE will prompt you for 
  143.            whether you wish to open a new instance of Netscape. 
  144.  -n 
  145.            Request a new browser window for <URL> from Netscape, if it's 
  146.            already running. (If Netscape is not yet running and a new instance 
  147.            is opened, a new window will always be opened, of course.) Per 
  148.            default, <URL> will be opened in the last active Netscape browser 
  149.            window. 
  150.  -p <exe> 
  151.            Here you can specify the full path of NETSCAPE.EXE, if it's not on 
  152.            your PATH. This is only evaluated if Netscape is not yet running and 
  153.            needs to be started. Per default, NETSCDDE will search the PATH for 
  154.            NETSCAPE.EXE. Example: 
  155.  
  156.            NETSCDDE -p "C:\NETSCAPE\NETSCAPE.EXE" <URL> 
  157.  
  158.            The use of quotes is only neccessary for paths which contain spaces, 
  159.            but never hurts. 
  160.  
  161.            For an interesting side-effect of this option, check the "Tips & 
  162.            Tricks" section. 
  163.  -P <params> 
  164.            Here you can specify command line parameters for a newly opened 
  165.            instance of Netscape, such as "-3" for Netscape 3.0 identification 
  166.            (see the Netscape documentation for details.) Example: 
  167.  
  168.            -P "-3" 
  169.  
  170.            Again, the use of quotes is only neccessary if the parameter list 
  171.            contains spaces, but never hurts. 
  172.  -m 
  173.            start Netscape minimized. 
  174.  -mh 
  175.            start Netscape minimized and hidden (see the "Tips & Tricks" 
  176.            section). 
  177.  
  178.  
  179. ΓòÉΓòÉΓòÉ 3.4. Tips & Tricks ΓòÉΓòÉΓòÉ
  180.  
  181.    1. Here's an unintended, but maybe useful side-effect: Since OS/2 can share 
  182.       its DDE environment with a Win-OS/2 session, NETSCDDE can even pass URLs 
  183.       to a running Win-OS/2 copy of Netscape Navigator. This includes 
  184.       Communicator (Netscape 4). The only thing you have to do is enable 
  185.       WIN_DDE in the Win-OS/2 session settings of your Windows Netscape program 
  186.       object. By specifying your Windows Netscape EXE file with -p <exe> (see 
  187.       above), NETSCDDE.EXE even provides for proper WPS integration of Windows 
  188.       Netscapes. 
  189.  
  190.    2. You can now (V1.1) also specify a .CMD file with -p and -P to have 
  191.       certain commands executed before and after Netscape is actually started. 
  192.       You should specify the -m or -mh options so that no ugly VIO window 
  193.       appears. Here is an example NETSCAPE.CMD: 
  194.  
  195.             @echo off
  196.             rem do some initialization here, e.g. change directory
  197.             cd D:\WebStuff
  198.             rem now call Netscape
  199.             netscape.exe
  200.             rem now the .cmd file is put to sleep until Netscape is
  201.             rem terminated; subsequent calls to NETSCDDE will contact
  202.             rem this running Netscape instance
  203.             rem after Netscape is terminated, execute this:
  204.             call cleanup.cmd
  205.             rem or whatever you want
  206.  
  207.       Thanks, Marcus de Geus, for this suggestion. 
  208.  
  209.    3. Here's a trick from Chris Wenham, senior editor of OS/2 e-zine, found in 
  210.       the SmartSuite Mailing List (smartsuite-os2@makelist.com): 
  211.  
  212.       "If you need to change the web browser that Smartsuite apps call when you 
  213.       click one of their Internet buttons (like Organizer's button to go to the 
  214.       Almanack page), or send the URL to the currently running copy of Netscape 
  215.       instead of launching a new instance, you need to do this: 
  216.  
  217.       Launch REGEDIT2.EXE in the /OS2/SYSTEM directory. Expand the 
  218.       HKEY_CLASSES_ROOT tree. Scroll down to "http" and expand it all the way 
  219.       down (through "shell" and "open") until you come to "command". 
  220.  
  221.       Right click on the data in the "(Default)" key, pick "Modify", and change 
  222.       the path to the new browser, making sure it's followed with a "%1" (which 
  223.       represents the URL). Close RegEdit. 
  224.  
  225.       You shouldn't need to reboot, but you might need to restart any SS 
  226.       components that are running. 
  227.  
  228.       Chris then states that you can enter NETSCDDE.EXE as your browser in this 
  229.       section. 
  230.  
  231.  
  232. ΓòÉΓòÉΓòÉ 3.5. How It Works ΓòÉΓòÉΓòÉ
  233.  
  234. This is done with the use of Dynamic Data Exchange (DDE), for the OS/2 version 
  235. of Netscape 2.02 understands just the same DDE commands as the Windows versions 
  236. do. These commands are (horribly) documented at 
  237. http://developer.netscape.com/library/documentation/communicator/DDE 
  238.  
  239. These documents assume a detailed knowledge of how DDE works, and believe me, 
  240. some things ARE different on OS/2. 
  241.  
  242.  
  243. ΓòÉΓòÉΓòÉ 3.6. NetscDDE Revision History ΓòÉΓòÉΓòÉ
  244.  
  245. V1.2 (July 8, 1998) 
  246.  
  247. Finally created this INF file for documentation. NetscDDE is now exclusively 
  248. distributed with XFolder and is published under the GNU General Public Licence. 
  249.  
  250. V1.1 (May 15, 1998) 
  251.  
  252. NETSCDDE can now start any program specified with -p, for example a batch file. 
  253. New -m and -h parameters. 
  254.  
  255. V1.02 (May 1, 1998) 
  256.  
  257. NETSCDDE does not any longer block the PM while waiting for Netscape to answer. 
  258.  
  259. V1.01 (March 8, 1998) Bugfix for local files which contain spaces. 
  260.  
  261. V1.0 (March 5, 1998) 
  262.  
  263. Initial release. 
  264.  
  265.  
  266. ΓòÉΓòÉΓòÉ 4. Resources on the Internet ΓòÉΓòÉΓòÉ
  267.  
  268. This chapter contains all external links referenced in this book.  Each link 
  269. contained herein is an Unified Resource Locator (URL) to a certain location  on 
  270. the Internet. Simply double-click on one of them to launch Netscape  with the 
  271. respective URL. 
  272.  
  273.  
  274. ΓòÉΓòÉΓòÉ 4.1. http://developer.netscape.com/library/documentation/communicator/DDE ΓòÉΓòÉΓòÉ
  275.  
  276.                   Click below to launch Netscape with this URL:
  277.  
  278.       http://developer.netscape.com/library/documentation/communicator/DDE
  279.  
  280.  
  281. ΓòÉΓòÉΓòÉ 4.2. http://www.os2ezine.com ΓòÉΓòÉΓòÉ
  282.  
  283.                   Click below to launch Netscape with this URL:
  284.  
  285.                              http://www.os2ezine.com
  286.  
  287.  
  288. ΓòÉΓòÉΓòÉ 4.3. http://www2.rz.hu-berlin.de/~h0444vnd/os2.htm ΓòÉΓòÉΓòÉ
  289.  
  290.                   Click below to launch Netscape with this URL:
  291.  
  292.                   http://www2.rz.hu-berlin.de/~h0444vnd/os2.htm
  293.