home *** CD-ROM | disk | FTP | other *** search
/ Shareware Supreme Volume 6 #1 / swsii.zip / swsii / 126 / XHAIR10.ZIP / XHAIR.DOC < prev   
Text File  |  1993-02-28  |  21KB  |  427 lines

  1.                                    CrossHair
  2.  
  3.  
  4.                                  Introduction
  5.  
  6.    CrossHair is a resident file look-up program which will provide information
  7. about files in your collection while viewing a filelist in some other program.
  8. With that information in hand making download, or other decisions, on each
  9. individual file are better informed. For example:
  10.  
  11.    (1) You might use it while online with a BBS to determine if you already
  12.       have as specific file
  13.  
  14.    (2) You might use it offline in RoboComm while viewing the "available files"
  15.       screen to determine whether a specific file duplicates something you
  16.       already have, is a later version, or is an entirely new file.
  17.  
  18.    (3) If you are a PCBoard sysop, you might use it while using PCBfiler in the
  19.       foreground. CrossHair will point out earlier versions on your board, if
  20.       they exist, and will tell you which file directory they are located in.
  21.       The error in which different versions appear in different directories
  22.       should be completely eliminated by using CrossHair.
  23.  
  24.  
  25.    To some extent, CrossHair will work with any foreground file-reader or
  26. communication program. The idiosyncrasies of some programs have been
  27. programmically dealt with so that CrossHair will read the screen and
  28. automatically look up the filename under consideration. Programs in this
  29. category include Robocomm, PCBfiler, and List. Other programs, such as Qedit,
  30. work well in the default look-up mode which depends upon the filename starting
  31. on the first screen position and a moving cursor to indicate the file under
  32. consideration. In other programs, such as Telix, it is not possible to tell
  33. what you are looking at from the appearance of the screen. In the latter case,
  34. CrossHair loses some of its automatic nature but can still be used as described
  35. later.
  36.  
  37.    Before CrossHair can be used, some configuration is required to provide it
  38. with the information to look up. If you are a PCB sysop, the configuration is
  39. done automatically from CNAMES by PCBINDEX which is also a part of this
  40. package. If you are not, you will need to do some setup as described later.
  41.  
  42.  
  43.                                  Legal Aspects
  44.  
  45. LIMIT OF LIABILITY
  46.  
  47.    CrossHair is distributed as is. The author makes no representation with
  48. respect to the fitness of the software for any particular purpose and disclaims
  49. all warranties, expressed or implied. The author will assume no liability for
  50. damages either from the direct use of this product or as a consequence of the
  51. use of this software.
  52.  
  53. SUPPORT
  54.  
  55.    There is no staff employed for support purposes. If you have a problem to
  56. report or features you would like to see implemented, use the comment field on
  57. the registration form. Alternatively, I can be reached with msgs placed on
  58. Computer Connections BBS (202) 547-2008 in Washington DC or Toad Hall BBS (415)
  59. 595-2427 in San Carlos, CA. All suggestions will be evaluated for the next
  60. version.
  61.  
  62.  
  63. SHAREWARE
  64.  
  65.    CrossHair is distributed as shareware. This means you can evaluate the
  66. product before you decide to register it. If you are using it after a couple of
  67. weeks, you should register it. You can copy CrossHair or any shareware program
  68. and distributed to anyone else, provided that neither the program nor the
  69. documentation is altered and that you do not charge a fee. Because there is no
  70. advertising, distribution, or packaging cost, the price of a shareware program
  71. is often less than an equivalent package sold through retail channels. The
  72. registration form is provided in a separate file.
  73.  
  74.  
  75.                                      Setup
  76.  
  77.    To be useful, CrossHair should be able to find the information it displays
  78. in a psychological instant, i.e. what "seems" instantaneously. To achieve that,
  79. all information must be put into a format which permits such rapid access. The
  80. formatting of data is done by PCBINDEX. As a final step, PCBINDEX spawns the
  81. program SORTF which alphabetizes the entire filelist so that CrossHair can
  82. easily find the alphabetic neighbors of the target filename.
  83.  
  84.    The program SORTF by Vernon Buerg must be on the path for this version, and
  85. probably all future versions, of PCBINDEX to function. SORTF is not included in
  86. this package but it can be found on nearly any BBS, and probably where you
  87. found this package, under the name "sortfnnn.zip" where nnn is the version
  88. number.
  89.  
  90.    Follow the steps below to setup CrossHair. Setup is slightly different, and
  91. easier, in a PCBoard environment.
  92.  
  93. 1. Put SORTF on the path
  94.  
  95. 2. Set an environmental variable PCBDIR, e.g.
  96.  
  97.               set pcbdir=c:\pcb
  98.  
  99.       This statement can be typed from the command line if you are trying
  100.    CrossHair or expect to use it infrequently. Otherwise it should be put into
  101.    your autoexec.bat file. In either case, be sure there are no spaces after
  102.    the equals sign. This is the subdirectory in which both PCBindex and
  103.    CrossHair can expect to find its control files. It need not be on the path
  104.    and it can coexist with other files.
  105.  
  106.       If you are a PCB sysop, the argument should identify the PCB root
  107.    directory. With that information, CrossHair can find CNAMES (in \pcb\main)
  108.    and from that it can locate all of your file directories and listings (dirn
  109.    files). PCBindex can deal with errors (missing files) listed in CNAMES, you
  110.    will save time in the long run if CNAMES is correct.
  111.  
  112.        If DOS gives you an error message ("Out of environmental space), your
  113.    environment isn't large enough. If your environment is not large enough, try
  114.    increasing the size a tad. That is done with a shell command in the
  115.    autoexec.bat file, e.g.
  116.  
  117.                 shell=command.com /E=384
  118.  
  119.       Where the environmental size is specified after /E. If you don't already
  120.       have a shell command, the default environmental size is 250 under DOS5
  121.       and 160 with earlier versions and you will need to increase it from those
  122.       values.
  123.  
  124.  
  125. 2. Create the control files.
  126.  
  127.    If you are working in a PCB environment, this step can be skipped since the
  128. control files are created for you automatically by the next step. Otherwise,
  129. the main control file is called pcbxh.dat. You must create it in the following
  130. format:
  131.  
  132. Text file           Physical Location     Description
  133. R:\DIRS\DIR2        V:\HARDWARE\          Hardware
  134. R:\DIRS\DIR3        Z:\WP\                Word Processing
  135. R:\DIRS\DIR4        Z:\DTP\               Desktop Publishing
  136. R:\DIRS\DIR5        X:\BUSINESS\          Business
  137.  
  138.    The list of text files which contain filenames must be accurate and
  139. complete. The physical location and description are optional. If they are
  140. included, they are feed back to you with CrossHair "ALT L" command as described
  141. below. This control file must be called PCBXH.DAT and it must be in the
  142. subdirectory pointed by the environmental variable PCBDIR.
  143.  
  144.    CrossHair works on text files rather than the actual filenames. If you are
  145. the sysop of any kind of BBS, you already have the text files. If you are not
  146. and all you have are files, you can produce text files by writing the
  147. directories which contain files to a file, e.g.
  148.  
  149.     dir j:\mydir >myfiles1
  150.  
  151.  
  152. 3. Execute PCBindex without argument.
  153.  
  154.           c:>pcbindex
  155.  
  156.    This step will take a few moments and you can watch its progress in the
  157. upper right-hand corner.
  158.  
  159.    If all goes well, you are now in position to run CrossHair as described
  160. above. There will be a file called xh.xdb in your pcb directory. You will
  161. probably want to put "xh.exe" and "pcbindex.exe" in a util directory on the
  162. path. There is no advantage (or disadvantage) for "pcbxh.dat" or "xh.xdb" to be
  163. pathed or located in the same subdirectory as CrossHair and PCBindex.
  164.  
  165.  
  166.                                Running CrossHair
  167.  
  168.    CrossHair can be executed either in a resident mode or nonresident mode. In
  169. the nonresident mode, all input is taken from the keyboard. In the resident
  170. mode, CrossHair looks at the screen and positions itself in your filelist at
  171. the point it thinks is the targeted filename. If there is a filename which is
  172. an exact match for what it thinks is the targeted filename, the CrossHair
  173. cursor will be positioned on that match. If there is no match, the cursor will
  174. be positioned on the filename which precedes the targeted filename.
  175.  
  176.    To execute CrossHair in the resident mode:
  177.  
  178. c:>xh
  179.  
  180.         This command loads CrossHair. You should see a message telling you how
  181.      to activate CrossHair and how to remove it from memory.
  182.  
  183. Press the hotkey(ALT .)
  184.  
  185.         This should cause a screen to come up similar to the one below. An
  186.      escape will remove all CrossHair screens. Because you loaded resident,
  187.      CrossHair will read your screen and what is at the cursor line of the
  188.      screen at the moment is the DOS prompt. If your prompt begins with
  189.      "Monday", for example, the CrossHair cursor will rest on the filename
  190.      which alphabetically precedes Monday (in my list, that is MODEM20).  If
  191.      your prompt begins with the characters "C:", the CrossHair cursor will
  192.      rest on a filename which begins with "C-" or "C2". In any case, a screen
  193.      similar to the following will be displayed.
  194.  
  195.  
  196. ╔══════════════════════════════════════════════════════════════════════════════╗
  197. ║ALFRED12.ZIP    11740  10-31-91  Alfred - The Desktop Butler v1.2:  MS-Windows║
  198. ║                               | 3.0 program that sits at the bottom of your  ║
  199. ║                               | screen, providing a menu for instant access  ║
  200. ╚══════════════════════════════════════════════════════════════════════════════╝
  201.  
  202.      ╔════════════════════╗
  203.      ║X:\WINDOWS\UTIL\    ║
  204.      ║R:\DIRS\DIR36       ║
  205.      ║Windows: Utilities  ║
  206.      ╚════════════════════╝
  207.  
  208.                                                   ┌──────────────┐
  209.                                                   │ ADVID105  20 │
  210.                                                   │ AGREP201  46 │
  211.                                                   │ AHEAD     41 │
  212.                                                   │ ALCHMY14  11 │
  213.                                                   │ ALERT14G  42 │
  214.                                                   │ ALFRED12  36 │
  215.                                                   │ ALIB12    47 │
  216.                                                   │ ALINT10   46 │
  217.                                                   │ ALLCC251  41 │
  218.                                                   └──────────────┘
  219.  
  220.    CrossHair now operates in a obvious way. As you move the bar in the files
  221. box, the description changes to match the operative file. The file box displays
  222. all files in an alphabetic order and the area number in which they are located.
  223. The location box is displayed only if you hit ALT L.
  224.  
  225.    The area numbers are not meaningful for any conferences. However, the
  226. specifications returned by the ALT L command are correct.
  227.  
  228.    You can navigate in your files list with the following keys.
  229.  
  230.    up arrow        Up a file
  231.    down arrow      Down a file
  232.    page up         Up 10 files
  233.    page down       Down 10 file
  234.    home            Go to the first file (alphabetically) in list
  235.    end             Go to last file
  236.    alt L           Display location box
  237.    alpha keys      Go to file whose next letter is the one I hit
  238.    escape          Return to host (DOS)
  239.  
  240.    To look up a specific file, just start typing in the filename. By the time
  241. you type three or four letters, your bar will be sitting on top of it. In the
  242. example above, by the time you've type MON, you know you have no file called
  243. "MONDAY". To look up a second filename, you have to terminate the first
  244. sequence with a navigational key or a return. In the screen above, if you typed
  245. in the letters A,L,F your bar would be on top of ALFRED12. If you then wanted
  246. to look up PKZIP and did that by typing P, the bar wouldn't move because
  247. CrossHair would think you are looking for a file starting with the letters
  248. "ALFP."  If you hit a return or navigation key first, then the bar would move
  249. to the top of the P's.
  250.  
  251.  
  252. Running CrossHair with a host reader:
  253.  
  254.    With CrossHair resident, load the reader or communication program you
  255. normally use and goto a mode in which you are looking at a listing of files.
  256. Even if you are not using any of the specifically configured file readers (e.g.
  257. Robocomm, PCBfiler) CrossHair will probably still read the screen correctly. If
  258. it doesn't, you can still use CrossHair to look up what is on the screen by
  259. typing the first few letters of the filename. The considerations of look up are
  260. described later.
  261.  
  262.    These commands apply to the CrossHair:
  263.  
  264.    xh /n    load CrossHair as a foreground (nonresident) program
  265.    xh /u    unload CrossHair from memory
  266.    ALT .    activate resident CrossHair.
  267.  
  268.  
  269. File look-up characteristics
  270.  
  271.    The manner in which a target file is determined varies from program to
  272. program. The only clue that CrossHair has with respect to what file you are
  273. looking up, is the appearance of the screen. Consequently, CrossHair must
  274. figure out who your host is before it determines what its target is. Since all
  275. possible hosts have not yet been described within CrossHair, it will not always
  276. work automatically. It will work however, in the following circumstances:
  277.  
  278.  
  279. Under RoboComm
  280.  
  281.    RoboComm should work correctly in both the "available files" and
  282. "downloaded" file sections. In robocomm, the cursor location not relevant. The
  283. relevant file is the one under the blue bar. To look up a file, position the
  284. blue bar and hit the hot key. CrossHair with then emerge with its bar on the
  285. nearest match in your files list.
  286.  
  287.  
  288. Under PCBfiler
  289.  
  290.    In PCBfiler, both the cursor location and the bar are irrelevant. The target
  291. file is located in column 10 of the line on which you are located or the
  292. nearest preceding line on which column 10 does not contain a space.
  293.  
  294. Under List
  295.  
  296.    List provides no clue about the filename under consideration since the
  297. cursor is always located on the last screen line and CrossHair's pupil-reading
  298. function does not yet work. When List is the host reader, CrossHair will
  299. initiate as if the target filename is the final one displayed. The thinking
  300. here is that it is better to be right some of the time than none of the time.
  301.  
  302. Under Qedit (default)
  303.  
  304.    Under Qedit, CrossHair determines the target filename as it does with all
  305. host readers other than those specified above. The target file is determined by
  306. what is located at column 0 on the line on which the cursor is located. If the
  307. first character is a space or tab, then CrossHair examines lines preceding the
  308. cursor line until it finds one in which the first character is not a space.
  309.  
  310. Under anything else:
  311.  
  312.    If the environment in which you are operating is not described accurately
  313. above, then you won't get automatic filename lookup with CrossHair. When
  314. CrossHair is brought up, the cursor will probably be at the end of file in
  315. filenames beginning with 'Z'. To find a filename, you will have to type in the
  316. name. Very likely you will be right where you want to be by the time you have
  317. typed 3 or 4 letters.
  318.  
  319.  
  320.  
  321.                                    PCBINDEX
  322.  
  323.    PCBINDEX must be run before CrossHair. It gets all the information it needs
  324. from the environmental variable PCBDIR and needs no command line arguments.
  325.  
  326.    PCBINDEX creates two files pcbxh.dat which describes your system and xh.xdb
  327. which is part database and part index file which tells CrossHair in what file a
  328. filename is listed and how many bytes into the file that specific file is
  329. listed. It must be run whenever the file listings have changed. If you are
  330. running under batch file control, you might wish to include it in whatever
  331. night routine you use. However, it is relatively fast and can be run from the
  332. command line without significant time consequent.
  333.  
  334.    PCBoard can be configured to use an index of file locations which must be
  335. updated when file locations change. That update is performed automatically when
  336. changes are made with PCBfiler via the mechanism of running a batch file named
  337. refresh.bat when changes are made. The CrossHair index can be updated at the
  338. same time by adding the command "pcbindex" to refresh.bat.
  339.  
  340.    While xh.xdb should not be modified manually, pcbxh.dat is a flat file which
  341. can be modified with any text editor. You can add listings which are not
  342. referenced by CNAMES such as off line directories. However, since pcbxh.dat is
  343. rewritten whenever it becomes obsolete, (and will therefore erase any changes
  344. you've made) what you will want to do is put any additions into a separate file
  345. and run pcbindex from a batch file such as the following:
  346.  
  347.     pcbindex
  348.     type newstuff >>pcbxh.dat
  349.  
  350. PCBINDEX command line arguments
  351.  
  352.    PCBINDEX does have a few command line arguments which are basically
  353. irrelevant to anything discussed heretofore. They do produce some files useful
  354. for other purposes and exist because all the information is available during
  355. the operation of PCBINDEX.
  356.  
  357.    /g     Creates two batch file called go.bat and 4go.bat. These batch files
  358.           take you to the directory which includes files. E.g. if you gave the
  359.           command, go 43, the batch file would take you to file area 43. The
  360.           batch file "4go.bat" is identical in function, but it is smaller,
  361.           quicker, and works only if you are using 4dos. You will probably want
  362.           to copy one to a pathed subdirectory and delete the other.
  363.    /t     Creates a text file of all filenames. The files are listed in the
  364.           order in which they are found.
  365.    /f     Force a run of pcbindex even though all files are current. This is
  366.           useful only if your system doesn't properly time stamp files or if a
  367.           run is interrupted.
  368.  
  369.  
  370. PCBINDEX limits
  371.  
  372.    There are some limits to the operation which are: 100 conferences and 250
  373. download directories and unlimited filenames. These limits are not logically
  374. necessary but are practically necessary because PCBoard and CNAMES allows
  375. duplicate download directories in different conferences. While that is not
  376. wrong in the operation of PCBoard, it is desirable to weed out the duplicates
  377. for the operation of CrossHair.
  378.  
  379.  
  380. WHAT CAN GO WRONG
  381.  
  382.  1.  When I bring up CrossHair, no filenames are displayed and all I see in the
  383.      files box are zeros.
  384.      
  385.           You have probably exceeded the maximum number of open files
  386.           particularly if you are running resident under Robocomm. Increase the
  387.           "files=" specification, reboot, and try again.
  388.  
  389.  2.  The description display is not consistent. Sometimes it does not
  390.      correspond to the filename under the cursor, sometimes it starts in the
  391.      middle of a description.
  392.  
  393.           Your index (xh.xdb) is not up to date. CrossHair depends on knowing
  394.           how many bytes beyond the beginning of a dir file that the
  395.           description begins. If you change the dir file, that count will be
  396.           wrong at all points after the point at which it was changed.
  397.  
  398.  3.  The files displayed in the files box are not related to what I am trying
  399.      to look up.
  400.  
  401.           CrossHair communicates with the display program via what is on the
  402.           screen at the cursor position. But it does some interpretation. It
  403.           checks first to see if the screen display is produced by Robocomm or
  404.           PCBFiler. If it is it knows how to find the active file regardless of
  405.           where the cursor is located. If it isn't, it assumes the filename is
  406.           the first word on the line on which the cursor is located. If that is
  407.           not the filename, it will look up that word anyway. If the listing
  408.           program doesn't work that way, it is not fully compatible with
  409.           CrossHair yet.
  410.  
  411.           CrossHair should come up and do something, even if it doesn't know
  412.           what to do. If you then type in the filename, you should be sitting
  413.           at the right location by the time you have typed 3 or 4 characters.
  414.  
  415.  4.  CrossHair seems rather slow on file-description display.
  416.  
  417.           This is addressed primarily to 286-users. As a point of reference, I
  418.           don't sense any delay on a 486/33. In the most adverse situation
  419.           tested (a 386/20 with four-way clock splitting under DesqView) the
  420.           delay appears to be approximately 0.15 sec which, in my view, is
  421.           borderline acceptable. The tradeoff is between memory consumption and
  422.           speed. The former was chosen because I wanted it to run well under
  423.           RoboComm which wants a great deal of memory. The cost in speed is
  424.           estimated to be about an order of magnitude.
  425.  
  426.  
  427.