home *** CD-ROM | disk | FTP | other *** search
- Help on WM Help The only way round is through. - Robert Frost
- ───────────────
-
- Welcome to Help on WM Help!
-
- First of all, some basic text scrolling commands (keys):
-
- ■ Up arrow (scroll up one line)
- ■ Down arrow (scroll down one line)
- ■ PgUp (scroll up 24 lines)
- ■ PgDn (scroll down 24 lines)
- ■ Home (go to first screen)
- ■ End (go to last screen)
-
- You can also use the mouse. The red portion of the bottom bar lists all the
- commands above (and more - we'll come to that). Position the mouse cursor on
- the command you wish to execute and hit Enter or click the Left mouse button.
-
-
- ─── WM Help basics ─────────────────────────────────────────────────────────────
-
- WM Help is a simple hypertext browser. Help files are text files which may
- be created with any ASCII editor, e.g. DOS Edit (this makes it easy for you
- to modify existing help entries or to add your own). The program is usually
- called with a filename parameter, as in "Help ReadDir". If no filename is
- specified, Help displays the default file Start.TXT (residing in WAVmaker's
- DOC\ subdirectory). If the file can not be found, WM Help is aborted.
-
- Text appearing within curly brackets is displayed in red. It constitutes a
- hypertext link, i.e. a reference to a location either in the document being
- viewed or in a different document. Positioning your mouse cursor on the link
- and hitting the Right arrow key ("forward" reading direction), the Enter key,
- or the Left mouse button (the one you always use to execute commands in
- WAVmaker) causes a jump to the referenced material.
-
- WM Help keeps track of your jumps. Hitting the Left arrow key ("backward"
- reading direction) or the Right mouse button (used to exit WAVmaker programs)
- returns you to the previous document (the one you last jumped from). This is
- known as backtracking.
-
- Backtracking from the top level document, the one displayed when you first
- entered WM Help, terminates the program. You can also leave WM Help at any
- time by hitting the Esc key.
-
- In summary, to execute a hypertext jump
-
- (1) Position the mouse cursor on the link
-
- (2) ■ Click the Left ("execute") mouse button, or
- ■ Hit the Enter ("execute") or the Right arrow
- ("forward") key
-
- To backtrack, ■ Click the Right ("exit") mouse button, or
- ■ Hit the Left arrow ("backward") key
-
- To exit, ■ Hit the Esc key.
-
- An example: click the Left mouse button on the following link to jump to the
- top of the present document, then click the Right mouse button to backtrack.
-
- {Help 1}
-
- Finding text
- ────────────
-
- WM Help offers a simple text search feature. To invoke it,
-
- ■ Press Alt-F, or
- ■ Choose Find from the bottom bar
-
- You will be prompted for the string to look for. Type it in using standard
- line edit commands (Left/Right arrow, Ins, Backspace and Del). You can abort
- by hitting Esc or by clicking the Right mouse button; if you terminate with
- Enter or by clicking the Left mouse button, the file is scanned for the next
- occurrence of the search string.
-
- The search starts either at the first currently displayed line or, if the
- previous search was for the same string, at the position immediately
- following its latest found occurrence.
-
- Repeated searches are quite easy, since WM Help remembers the search string.
- Once you've typed it in, just position the mouse cursor on the Find command
- (bottom bar) and keep clicking!
-
-
- Printing text
- ─────────────
-
- Do not forget your PrtSc key! If you only want to print out a screenful of
- text, this is the quickest way.
-
- It is also possible to send selected portions of a help file to the
- standard DOS printer/spooler for background printing. In order to do so,
-
- (0) Hit the - (Minus) key a couple of times (a preparatory action
- to remove any previously set markers).
-
- (1) Position the mouse cursor at the beginning (first character)
- of the block to be printed out.
-
- (2) Hit the + (Plus) key. This sets the start marker (you won't see
- anything happening on the screen at this time).
-
- (3) Position the mouse cursor at the end (last character) of the
- block to be printed out.
-
- (4) Hit the + (Plus) key again. This sets the end marker. The
- (visible portion of the) selected range should now be
- highlighted (cyan background).
-
- You won't get a selected range if you set the end marker to a position
- preceding that of the start marker! If you want to change your marker
- assignments, use the - (Minus) key. This key removes the end mark first
- (if it's set), so you can hit it just once to remove the end marker but not
- the start marker, or twice to remove both markers and start all over again.
-
- Anyway, provided that you have selected a range (it does not need to be on
- screen, you are free to scroll around any way you like) you are all set for
- step
-
- (5) To print the selected range,
-
- ■ Press Alt-P, or
- ■ Choose Print from the bottom bar
-
- WM Help will now invoke HARDCOPY.BAT, which in turn calls the DOS PRINT
- utility. If you want to use a different printer/spooler, edit HARDCOPY.BAT.
-
- Technical Note:
-
- HARDCOPY.BAT sends all PRINT screen output to the NUL device. This is done
- to keep the WM Help screen intact. The resident part of PRINT is installed
- by WM.BAT when WAVmaker is first started up. If PRINT has not already been
- installed when WM Help invokes it, it will try to ask the usual question
- (device name), but since its output is being redirected to the NUL device,
- you won't see this, and the system will appear to have locked up. Hitting
- Enter will clear things up, but the morale is the usual one: use WM.BAT to
- start up WAVmaker, do not modify it unless you know what you are doing (or
- at least not without having backed it up first!), and do not run WAVmaker's
- user interface programs (WMmain, WMmenu, WM DOSbox, WM WAView, WM Read,
- WM Help and WM PRGed) in standalone mode!
-
-
- Getting Help on WM Help
- ───────────────────────
-
- In order to jump to this file from within WM Help
-
- ■ Press Alt-H, or
- ■ Choose Help from the bottom bar
-
-
- ─── Link format ────────────────────────────────────────────────────────────────
-
- [This section contains technical information. You don't need to read it unless
- you plan to modify/extend the help system.]
-
- The WM Help link format is quite straightforward:
-
- First comes the name of the desired text file. Files are assumed to reside in
- WAVmaker's DOC\ subdirectory. If no extension is provided, the default TXT is
- used. In the above example, WM Help goes looking for the file DOC\HELP.TXT
- (since DOS is not case sensitive, WM Help isn't either - Help, HELP and hElP
- are all the same to it).
-
- After the file name there may be an optional line number. The default line
- number is 1 (top of file), so there was no real need for it in the above
- example (we could just have written {Help}).
-
-
- Shelling to DOS
- ───────────────
-
- There is a special case. A link starting with the separate word DOS is NOT a
- help text reference; it's a DOS shell command. All remaining text in the link
- is a standard DOS command line. If you execute such a "jump", WM Help will
- unload almost all of itself from base memory, leaving only a small stub
- resident (a few kB - the exact size depends on memory fragmentation at run
- time). The rest of program and data is swapped to XMS memory, EMS memory, or
- disk, in that order of preference. Thereafter, the command line is executed.
- When the child process terminates, WM Help loads itself back into base memory.
-
- Try it! Clicking on the following links should cause imgView (residing in
- WAVmaker's EXE\ subdirectory) to display the files Lips.GIF, Frog.GIF and
- Fly.GIF (residing in the Doc\ subdirectory; you'll need a SVGA for this to
- work) - exit the usual way, hit Esc or click the Right mouse button:
-
- {DOS EXE\imgView Doc\Lips}
- {DOS EXE\imgView Doc\Frog}
- {DOS EXE\imgView Doc\Fly}
-
- By the way, click here for the imgView documentation: {imgView}.
-
- The DOS shell conventions are the same throughout WAVmaker. Redirection is
- supported. If the command to be executed is a BAT file, WM Help uses the
- COMSPEC environment variable to locate the command processor, and inserts any
- parameters present on the COMSPEC line into the parameter string. In order to
- execute internal commands (commands which are part of COMMAND.COM) you must
- invoke the command processor explicitly with the /C switch, as in
- "COMMAND /C DIR".