From: Dirk M. <dmo...@gm...> - 2001-03-30 20:42:12
|
Hi all, Know thy enemy!! I finally found a solution to use the InfoViewer plugin with the Microsoft Internet Explorer that works around the following problems: * reuse existing Internet Explorer windows * navigate to URLs with anchors containing spaces For this to work you must have the Windows Scripting Host (WSCRIPT.EXE) installed. Don't worry: If you've got a recent version of Windows (ie. Windows 2000, Windows ME or Windows 98 SE), you probably have it already. If not, you can install it from Windows installation CD. Unzip the contents of the attached zip file to any directory, for example to: C:\Script Files\ The zip file contains a single JavaScript names "launchIE.js". In InfoViewer, set the external browser command to: WSCRIPT.EXE "C:\Script Files\launchIE.js" Please don't forget the quotes, if the path to the script contains spaces, as in the example above. If you want to reuse an (arbitrary) existing Internet Explorer window, add the /reuse option after the script: WSCRIPT.EXE "C:\Scripts\launchIE.js" /reuse If no instance of Internet Explorer is currently running, the script starts one. Note that the /reuse option is implemented through a crude hack, that sends "Ctrl-O <url> [ENTER]" to the Explorer window. This may fail under some awkward circumstances. Note, however, if you don't use the /reuse option, the script uses fine sober Windows API, that should behave correctly in any case. Please send me any comments whether it's running or not. I'll try to iron the bugs out and integrate it into the next version of InfoViewer. Have fun, Dirk. PS: In case you're interested: No, it's definitely _not_ fun to learn ActiveX script programming. It's horrible, and most of the time it's trial and error. Couldn't have done it without google.com. 8-) PPS: I had to pack the script in a ZIP file, because SourceForge's mail delivery software does not allow me to send JavaScript files as attachment directly. Well, it seems strange to put such a harsh restriction on ALL users because of an BUG that affects only ONE operation system, but, ok, I can live with it... :-> |