HM2Go - mini server for local WebHelp

Navigation:  Publishing > Configuring Your Output > WebHelp >

HM2Go - mini server for local WebHelp

Previous pageReturn to chapter overviewNext page

Show/Hide Hidden Text

You are probably all too familiar with the annoying yellow warning bar in that appears in Internet Explorer when you open WebHelp files directly on your own computer. Google Chrome also has problems with local WebHelp files, although they display fine in Chrome online. Without a web server environment, browsers like Internet Explorer and Chrome are unable to confirm the security of active features in HTML files and they block them to be on the safe side.

HM2Go is a tiny server you can distribute with your help

Help & Manual 2 Go (HM2Go) is a tiny server in a single 1.5mb EXE file. When you open your WebHelp output automatically after publishing it, Help & Manual opens it in HM2Go so that all browsers display it correctly.

If you are distributing WebHelp for local viewing you can install HM2Go and be sure that the help will display properly, even if it opens in  browsers with defective local HTML handling like IE and Chrome. HM2Go is royalty-free and very easy to deploy and works both on hard disks and on removable media like CDs and DVDs. There are just two switches in the command line:

Click to expand/collapseUsing HM2Go for testing your WebHelp after publishing

The HM2Go server is started automatically if you activate the option for displaying your help output in the Publish page (Display file when publishing is complete). Once it is running you will see its icon in the system tray notification area in the Windows Taskbar, with options for exiting and configuring:

DLG_HM2Go

Configuring HM2Go locally:

Just right-click on the HM2Go taskbar icon and select Configure. You can set the port it uses and the timeout after which it will exit automatically if it is not used for the number of minutes you specify. The standard port is 80 and you will only need to change this if you are already running another web server on your computer. A good range of ports that are guaranteed to be free is from 8805 - 8872. Any number between those values is generally safe to use. The port and timeout settings will be saved and used the next time HM2Go is started.

Opening HTML pages with HM2Go when it is running:

Once HM2Go is running you can open any local HTML pages (for example your WebHelp) with it by entering its IP address in the address field of your web browser. If you have changed the port you also need to enter the port number. The normal address with the standard port (80) is http://127.0.0.1 , and you just need to add  the absolute path to the file you want to open after it like this:

http://127.0.0.1/D:/Documents/My+HelpAndManual+Projects/Demohelp/HTML/index.html

Use plus (+) characters instead of spaces.

If you have changed the port address to anything except 80 you need to include the port number in the URL, directly after the IP address and preceded by a colon, like this:

http://127.0.0.1:8810/D:/Documents/My+HelpAndManual+Projects/Demohelp/HTML/index.html

Click to expand/collapseDistributing HM2Go with your own WebHelp

HM2Go can be distributed with your own WebHelp and used to display it with the user's default web browser, avoiding all problems normally associated with opening WebHelp locally without a server. This also works with WebHelp distributed on CDs and DVDs. It will run fine directly from the CD/DVD.

How to get HM2Go:

The HM2Go.exe file is located in the Help & Manual program directory. Just copy it from there to use it. All you need is this single EXE file. It is easiest to save it in the same folder as your WebHelp files to use it.

Command line syntax and options for starting HM2Go:

HM2Go.exe /P:xxxx /T:xx /PRJ:xxxx.html

The /P= switch is the port number, the /T= switch specifies the number of minutes until HM2Go exits automatically if it is not used and the /PRJ= switch specifies the HTML file you want to open. Your command line will normally look like this:

HM2GO.EXE /P:8810 /T:0 /PRJ:index.html

It is best not to use the default web server port (80) in case the user already has a local web server installed (Mac OS X and Linux computers often have an active copy of Apache running on this port, for example). A good range of ports that are guaranteed to be free is from 8805 - 8872. Any number between those values is generally safe to use. Set the timeout to 0 to prevent the server from exiting automatically unless you have a specific reason for setting an explicit timeout value.

Starting HM2Go in a batch file:

If you start HM2Go with a batch file you don't want the command console window to open visibly. To prevent this, use the start /B command:

@echo off
start /B HM2GO.EXE /P:8810 /T:0 /PRJ:index.html

HM2Go on "produced" CDs and DVDs:

The best way to use HM2Go on a CD or DVD is to design the disc with a program that creates an interactive menu for your disc content so that the user can start the help by clicking a button. You can also create a simple autorun disc (see below), but many users turn off autorun for optical discs nowadays because of security considerations, so these may not always work.

All you need for a produced disc is to store HM2Go.exe in the same folder with all your WebHelp files and enter the command line options outlined above to start the help. You can also make context-sensitive calls to topics in the WebHelp: You just need to prefix the address with the IP and the port number you have configured for HM2Go, for example:

http://127.0.0.1:8810/index.html?introduction.htm#beginners

HM2Go on an auto-starting CD or DVD:

To install HM2Go with your WebHelp on an auto-starting CD or DVD you just need to burn the WebHelp files and the HM2Go.exe file to the CD or DVD together with an icon file to be displayed for the disc in Windows Explorer and a text file called autorun.inf. The minimum contents of autorun.inf are the following lines:

[autorun]
open=HM2GO.EXE /P:8810 /T:0 /PRJ:index.html
icon=youricon.ico

Here too, you can make context-sensitive help calls to topics in the WebHelp as shown above for produced discs. You can find lots of tutorials for creating more complex autorun discs online, but it is really better to use a tool for creating "produced" discs with proper menus where the user starts the help by clicking a menu button.