home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / database / zk202.zip / ZIPKEY.DOC < prev    next >
Text File  |  1991-05-18  |  138KB  |  3,023 lines

  1. ZIPKEY zipcode directory program  V2.02         May 18, 1991
  2.  
  3. The entire package is Copyright 1989,1990,1991 Eric Isaacson.
  4. All rights reserved.
  5.  
  6.    Eric Isaacson Software
  7.    416 E. University Ave.
  8.    Bloomington, IN 47401-4739
  9.    (812)339-1811
  10.  
  11. PLEASE read Chapter 1 for legal terms, how to register/subscribe
  12. for the package, and the overview of the program.  Just type
  13. ZIPKEY if you don't like reading manuals.
  14.  
  15. This DOC file is an entire manual-- over 50 pages.  I have
  16. formatted this file so that it can be printed at 10cpi with
  17. margins.  To save space, I don't have a left margin in the file.
  18. You'll need to set your printer to a one-inch left margin to have
  19. room to punch holes for a ring binder.
  20.  
  21. If you got ZIPKEY from an XYZ software house, that advertises
  22. great software for $5 per disk, and you are now confused as to
  23. your rights, you might ask the following
  24.  
  25. QUESTION: "What's going on here?  Have I already bought the
  26.   program, or what?"
  27.  
  28. ANSWER: Well, no, not exactly.  You've bought a disk that has
  29.   great software on it; unless you legally purchased the
  30.   registered version of ZIPKEY, you haven't bought the software
  31.   yet.  ZIPKEY, like most major software offered by the
  32.   $5-per-disk distribution houses, is free-distribution software
  33.   (also known as "shareware", or "user-supported software").
  34.   That means I retain the rights to ZIPKEY, but I choose to let
  35.   people pass the evaluation copy around.  I have no business
  36.   relationship with any distribution houses in the U.S.; I don't
  37.   get a penny of the $5 (or whatever) you paid them for the disk
  38.   containing ZIPKEY.  So I need and expect to be paid by you,
  39.   because I make my living out of making and supporting shareware
  40.   products.
  41.  
  42.   Some distribution houses do a pretty poor job of revealing the
  43.   shareware nature of the software they sell.  If you thought you
  44.   had purchased the software free and clear, you might feel
  45.   justified in being angry with them for having misled you.  And
  46.   you might look around for houses that do a better job of
  47.   informing the public.  But I hope you'll take the time to
  48.   consider everybody's role in the shareware marketing scene; if
  49.   you do, I think you'll conclude that although you may have been
  50.   misled, you haven't really been cheated out of anything.
  51.  
  52.   Shareware is great for authors like me, who have spent all
  53.   their years in their computer holes, learning to be great
  54.   programmers, and no time in business school learning marketing
  55.   and distribution techniques.  We simply cast our programs to
  56.   the winds.  They are distributed at practically no cost to us.
  57.   That's why we can charge a lot less than the cost of
  58.   "commercial" software.
  59.                                                               0-2
  60.  
  61.   Shareware is also great for customers like you.  You can try
  62.   out the software before paying for it.  You'll know that a
  63.   successful shareware product is good, because only satisfied
  64.   customers pay for it.  The existence of shareware infuses
  65.   healthy competition into the entire software market, for both
  66.   price and quality.  In the case of ZIPKEY, I'm utterly
  67.   convinced that you'll never find a better value for a zipcode
  68.   directory, anywhere.
  69.  
  70.   Finally, let's consider the distribution houses.  They provide
  71.   a legitimate service, for which they charge a reasonable price.
  72.   The best houses act as librarians, evaluating and cataloguing
  73.   software.  Most pay thousands of dollars for advertising.
  74.   Their cut is far less than the distributor's cut for
  75.   "commercial" software (they prosper because their volume is
  76.   bigger and their support responsibilities are smaller).  Most
  77.   customers for the distribution houses are repeat customers, who
  78.   are aware of, and happy with, what they are getting.  If it
  79.   weren't for your XYZ House, you might never have heard of
  80.   ZIPKEY, or might never have figured out where to obtain it.
  81.  
  82.   So I hope you'll be happy with shareware, and actively desire
  83.   to support it.  You'll feel good about promoting a healthy
  84.   situation for everybody.  And you'll encourage the best
  85.   programmers in the world to keep writing for you, instead of
  86.   for the big corporations.
  87.  
  88. Now that I've said that, let's move on to the package.   The
  89. ZIPKEY evaluation package consists of the program ZIPKEY.EXE, the
  90. database file ZIPKEY.OVL, this manual ZIPKEY.DOC, and ZPROG.DOC,
  91. a supplement for programmers.
  92.  
  93.  
  94.  
  95. TABLE OF CONTENTS
  96.  
  97.  
  98. CHAPTER 1  INTRODUCTION AND LEGAL TERMS
  99.  
  100. Overview of This Manual                                     1-1
  101. Overview of ZIPKEY                                          1-2
  102. What ZIPKEY Doesn't Do                                      1-3
  103. Operating Requirements                                      1-3
  104. Legal Terms                                                 1-3
  105. Legal Conditions for Free Distribution                      1-5
  106. Sources and Copyright Status of ZIPKEY's Database           1-6
  107. Difference Between the Evaluation and Registered Versions   1-7
  108. Naming Conventions for Distribution                         1-7
  109. About the Author                                            1-8
  110. How to Contact Me                                           1-9
  111.                                                               0-3
  112.  
  113. CHAPTER 2  LOOKING UP ZIPCODES
  114.  
  115. Demonstration Mode                             2-1
  116. Signon Window                                  2-1
  117. Zipcode Search                                 2-2
  118. Arrow and Paging Keys During Zipcode Search    2-4
  119. State and City Search                          2-5
  120. Multiple Zipcode Cities                        2-6
  121. City Only Search                               2-7
  122. Moving From State to State                     2-7
  123. Unabbreviation                                 2-8
  124. Telephone Area Code Search                     2-8
  125. Repeat Last Zipcode                            2-9
  126.  
  127.  
  128. CHAPTER 3  ZIPKEY CONFIGURATION
  129.  
  130. Determining Your Configuration Needs      3-1
  131. How to Create a ZC File                   3-2
  132. Default Options                           3-2
  133. Memory Model                              3-3
  134. Intermediate Results                      3-4
  135. Numlock On                                3-4
  136. Slow Down Keyboard                        3-4
  137. Window Characteristics                    3-5
  138. Monochrome and Color Window Settings      3-6
  139. Hotkey Configuration                      3-6
  140. Hotkey Name                               3-6
  141. Zipcode Source                            3-8
  142. Format of City/State/Zip Keystrokes      3-10
  143. Multiple Hotkeys                         3-13
  144. Exit Keys                                3-13
  145. Configuration Editing Menu               3-14
  146. Named Configuration Files                3-15
  147. Modifying Configuration Files            3-15
  148. More Hotkey Examples                     3-15
  149. Conclusion                               3-17
  150.  
  151.  
  152. CHAPTER 4  RUNNING MEMORY-RESIDENT ZIPKEY
  153.  
  154. Installing ZIPKEY as a Memory-Resident Program     4-1
  155. Correcting Your Configuration                      4-2
  156. Uninstalling ZIPKEY                                4-3
  157. Re-installing a New Configuration                  4-3
  158. Making ZIPKEY Permanently Available                4-4
  159. ZIPKEY and Other Memory-Resident Programs          4-4
  160. Finding ZIPKEY Files on Your Disk                  4-5
  161. Installing Files on a Network                      4-7
  162.                                                               0-4
  163.  
  164. CHAPTER 5 GENERATING AN ORDER FORM
  165.  
  166. Automatic Order-Form Generation            5-1
  167. ZIPKEY's Schedule of Prices                5-1
  168. Gathering Your Order Information           5-2
  169. Answering the Order-Form Questionnaire     5-3
  170. Possible Amendments to the Total Price     5-3
  171.  
  172.  
  173. CHAPTER 6 PROGRAMMATIC INTERFACE
  174.  
  175. INDEX
  176.  
  177. CHAPTER 1   INTRODUCTION AND LEGAL TERMS
  178.  
  179.  
  180. Overview of This Manual
  181.  
  182. Welcome to ZIPKEY!  I've tried to make the ZIPKEY program as
  183. self-explanatory as possible, so that you won't need to consult
  184. this manual very much.  I believe I have succeeded to the extent
  185. that if you're a somewhat experienced computer user, you'll be
  186. able to figure out the program on its own. You may simply wish to
  187. copy the program (ZIPKEY.COM in the registered version,
  188. ZIPKEY.EXE in the evaluation version) and the data file
  189. ZIPKEY.OVL to your hard disk, type ZIPKEY, and go from there.
  190. But ZIPKEY is a complex program with a fair number of
  191. sophisticated features.  If you're a less experienced computer
  192. user, or if you'd like to explore every nook and cranny of
  193. ZIPKEY's functionality, you'll want to read this manual.  It
  194. describes ZIPKEY in more detail than the built-in documentation,
  195. and provides examples you can work through as you read.
  196.  
  197. Some of this manual (especially in Chapters 2 and 3) tries to do
  198. double duty, as both a tutorial and a reference guide.  A
  199. tutorial is intended to be read from start to finish; it may
  200. contain a thread of discussion that runs from section to section.
  201. A reference guide is intended to be consulted a section at a
  202. time, to look up specific facts; it may repeat information so
  203. that the user doesn't need to read the whole manual to obtain the
  204. desired fact.  I've tried to keep the tutorial-vs.-reference
  205. annoyances to a minimum: the continuing (tutorial) threads are
  206. restricted to the more elaborate examples presented; I hope they
  207. are easy enough to pick up when you consult a section as a
  208. reference.  And I have tried to organize things to keep
  209. repetitions to a minimum, so you can read the manual as a
  210. tutorial.
  211.  
  212. I would, of course, like you to read this first chapter,
  213. including the legal terms and conditions pertaining to the
  214. program.  Then, if you're just getting started with ZIPKEY, you
  215. should read through Chapter 2 while running ZIPKEY in
  216. demonstration mode, to follow the examples and gain a familiarity
  217. with all of ZIPKEY's search capabilities.  Chapter 3 tells you
  218. how to configure ZIPKEY for memory-resident use, and Chapter 4
  219. tells you how to set up the files on your computer so that ZIPKEY
  220. is permanently available.  Chapter 5 gives you details about
  221. ZIPKEY's built-in facility for creating an order form to
  222. subscribe to ZIPKEY and regularly receive fresh data.  Chapter 6
  223. is for computer programmers who wish to access ZIPKEY's functions
  224. from within their programs.
  225.                                                               1-2
  226.  
  227. Overview of ZIPKEY
  228.  
  229. ZIPKEY is a complete city-level directory of 5-digit United
  230. States zipcodes and 3-digit telephone area codes, combined with a
  231. keyboard enhancement program.  The goal of ZIPKEY is to provide
  232. enough power and flexibility so that no one with an IBM-PC (or
  233. hardware-compatible computer) will ever again have to manually
  234. type in the name of a United States city or town (at least not
  235. one big enough to have its own zipcode).
  236.  
  237. When run as an ordinary program, ZIPKEY allows you to instantly
  238. access any of the 42000+ zipcodes in the directory, searching by
  239. zipcode, state-and-city, city-only, or area code.  If you want to
  240. use ZIPKEY just to occasionally look up a zipcode or area code,
  241. you simply choose main-menu option 2 and follow the prompts.
  242.  
  243. ZIPKEY achieves its full power when installed permanently in
  244. memory.  In this "memory-resident" mode, you can invoke ZIPKEY
  245. from within any other program (a word processor, a data-base
  246. manager, etc.).  You can type just a 5-digit zipcode, and ZIPKEY
  247. will fool the program you're running into thinking that you have
  248. typed any or all of the following: the city name, the state name
  249. and/or abbreviation, the zipcode, the area code, and any other
  250. combination of fixed keystrokes.  This "keystroke output" can be
  251. in any format that you wish.
  252.  
  253. ZIPKEY is completely configurable.  You can specify any
  254. combination of keystrokes (the "hotkey") that will invoke ZIPKEY
  255. when you're running another program.  You can also specify
  256. alternate hotkeys to allow differing sources of zipcode
  257. specifications (repeat the last zipcode, use a fixed sequence of
  258. first digits, or get the zipcode from your screen), and/or a
  259. differing format when ZIPKEY feeds the city/state/zip back
  260. through your keyboard.  You may have up to 99 different hotkeys.
  261. Your configuration is stored in a disk file, which is
  262. automatically read by ZIPKEY whenever it is invoked.
  263.  
  264. ZIPKEY has a sophisticated abbreviation algorithm, allowing you
  265. to specify a limit to the length of the city name, so that it
  266. will fit into a fixed field.
  267.  
  268. ZIPKEY's database is based on data from numerous sources,
  269. including the U.S. Postal Service.  It has been extensively
  270. cross-checked to ensure accuracy and consistency.  The data is
  271. highly compressed, so it won't occupy very much space on your
  272. disk or in memory.  The compression method was custom-designed
  273. for this database, providing for maximum compaction while
  274. retaining instant access.  It occupies less than 128K bytes (less
  275. than 3 bytes per entry), small enough to allow installation of
  276. the data base in either LIM-EMS or main memory.  But access to
  277. the data is fast enough so that it is perfectly reasonable to
  278. leave the database on your hard or RAM disk.
  279.                                                               1-3
  280.  
  281. What ZIPKEY Doesn't Do
  282.  
  283. ZIPKEY's database doesn't contain street names, so ZIPKEY can't
  284. tell you the exact zipcode for a street address within a city
  285. that has more than one zipcode.  Such a database would occupy
  286. megabytes, even with ZIPKEY's rate of compression.  Right now I
  287. consider that too big for mass distribution; but in the coming
  288. years, when storage capacities increase, I hope to offer such a
  289. database.
  290.  
  291. ZIPKEY has been tested against all the major database managers,
  292. word processors, and spreadsheets, and works fine with the vast
  293. majority of them. But there are some programs that ZIPKEY is
  294. incompatible with.  Here are the problems that I know about and
  295. haven't been able to solve:  Keystroke playback doesn't work
  296. within Microsoft Works 1.0, which apparently ignores the usual
  297. keyboard drivers in your computer; but you can make Works 2.0
  298. work either by using the text-mode option or configuring ZIPKEY
  299. to work in graphics mode. ProKey 2.1 causes problems, but 4.0
  300. works fine.  Microsoft Word 4.0 doesn't allow typeahead within
  301. ZIPKEY's window so you must either disable intermediate results
  302. or type slowly -- Word 5.0 solved this problem.  NamePal 1.4 has
  303. a bug that limits playback to 15 keystrokes.
  304.  
  305.  
  306.  
  307. Operating Requirements
  308.  
  309. ZIPKEY requires an IBM-PC, IBM-PC AT, or 100% hardware-compatible
  310. computer with at least 256K bytes of memory, running MS-DOS V2.0
  311. or later.  A hard disk is not required but is recommended unless
  312. you have lots of memory to store ZIPKEY's data after it is
  313. installed.
  314.  
  315. Most of the "clone" computers work fine running ZIPKEY.  The
  316. areas of compatibility needed are in the memory-mapping of the
  317. video interface, the BIOS variables and buffers managing both
  318. video and keyboard, the timer-interrupt hardware, and the
  319. keyboard-interrupt mechanism.  Some computers are compatible
  320. except for the mapping of internal codes passed from the keyboard
  321. to the computer.  For those computers, ZIPKEY will work properly
  322. except during configuration, when the wrong names are displayed
  323. for the hotkeys.
  324.  
  325.  
  326. Legal Terms
  327.  
  328. ZIPKEY is a copyrighted work -- it is not and never has been in
  329. the public domain.  Each release of the ZIPKEY program comes in
  330. two versions: ZIPKEY.EXE, the evaluation copy, may be copied and
  331. distributed to others, subject to the conditions I'm about to
  332. describe.  The other version ZIPKEY.COM, the registered user's
  333. copy, is subject to the same legal restrictions as
  334. traditionally-distributed ("commercial") software.  Neither
  335. version has any physical copy-protection schemes.
  336.                                                               1-4
  337.  
  338. WARNING: Before installing this or ANY new software, you should
  339. BACK UP any valuable data on your computer system.  ZIPKEY has
  340. been extensively tested on numerous different machines, and it is
  341. believed to be reliable and non-harmful.  However, software is
  342. the most complicated kind of product there is.  No mortal human
  343. can be absolutely and completely certain that a piece of
  344. complicated software will work on any given machine.  So you are
  345. completely responsible for determining the fitness or usability
  346. of this package.  I will not be liable for damages of any kind,
  347. including but not limited to lost sales or profits, arising from
  348. any failure of this package to perform as expected.
  349.  
  350. If you have the evaluation copy ZIPKEY.EXE, I hereby grant you
  351. permission to install this version of ZIPKEY in its
  352. memory-resident mode for up to one month.  After that, you must
  353. either remove ZIPKEY from your system, or subscribe -- option 5
  354. of the main menu (described in detail in Chapter 5) will create
  355. an order form for you.
  356.  
  357. If you have the registered copy ZIPKEY.COM, you may install it
  358. only on those computers servicing the keyboards you have
  359. licensed.  You may make copies for backup and archival purposes.
  360. You may not allow the registered copy to be run from more
  361. keyboards than you have licensed.  The license for running ZIPKEY
  362. in its non-memory resident (demonstration) mode is permanent --
  363. you don't need to renew unless and until you want fresh data.
  364. The license for running ZIPKEY in its memory-resident mode
  365. (hotkeys, key playback, and/or program interface) is paid by the
  366. year, according to the rate schedule published in Chapter 5, and
  367. built into the order-form section of ZIPKEY, option 5 of ZIPKEY's
  368. main menu.
  369.  
  370. A simple registration for a single keyboard, with printed manual
  371. and one disk with the latest data, is $30.  Update disks are $25
  372. apiece.  Again, the license is permanent if you use ZIPKEY only
  373. in demonstration mode; it is good for one year if you use ZIPKEY
  374. in memory-resident mode.
  375.  
  376. If you are a casual user -- only calling up ZIPKEY occasionally
  377. in non-memory-resident mode for private, non-commercial use --
  378. then your subscription is optional.  You may send however much
  379. money you feel the program is worth to you.  If you send $30
  380. ($31.50 in Indiana), you'll get the printed manual and a disk
  381. with the registered version of the program and the most current
  382. database.  Your support is much appreciated, and will encourage
  383. the continued production of high-quality "try before you buy"
  384. software.
  385.  
  386. I reserve the legal right to change legal terms and prices for
  387. future versions without prior notice.  At the present time I have
  388. no plans to change prices until inflation has seriously reduced
  389. the value of the dollar (by, say, at least a third off its 1989
  390. value).  I will never consider you committed to a higher price
  391. before being advised of the price-- you'll always have the option
  392. to cancel your subscription and receive a refund for unused time.
  393.                                                               1-5
  394.  
  395. Legal Conditions for Free Distribution
  396.  
  397. Here are the conditions for free distribution of the evaluation
  398. version of ZIPKEY:
  399.  
  400. 1. You may copy the disk-file version of this manual, the
  401.    evaluation version ZIPKEY.EXE, and any version of ZIPKEY.OVL
  402.    more than six months old, and give them to anyone who accepts
  403.    all the legal terms spelled out in this chapter.  The copies
  404.    you distribute must be complete and unmodified.  You are
  405.    specifically prohibited from distributing the ZIPKEY.OVL data
  406.    in any unpacked format, or any format other than ZIPKEY.OVL.
  407.  
  408.    Each ZIPKEY.OVL file that I distribute begins with a copyright
  409.    message containing the date after which the file can be
  410.    distributed freely.
  411.  
  412. 2. No part of ZIPKEY may be sold to anyone without my prior
  413.    written permission.  If the package is distributed on a
  414.    diskette, any fees collected must be specified as
  415.    materials/handling, and may not exceed $10 for the diskette.
  416.    Thus, I am allowing shareware distribution houses to
  417.    distribute the evaluation version of ZIPKEY, as long as they
  418.    don't try to deceive their customers into thinking they have
  419.    bought the full rights to the program.
  420.  
  421. 3. I reserve the right to prohibit specific individuals and/or
  422.    companies from distributing any or all of my copyrighted
  423.    works.  If I exercise this right, I shall inform such
  424.    individuals/companies in writing, by certified letter.
  425.  
  426.    So far, I have exercised this right against only one company,
  427.    Sizzleware.  They received a prohibition against distributing
  428.    my A86/D86 packages after they marked the packages Public
  429.    Domain in their catalog, and then neglected to change the
  430.    entry in the next catalog.  The subsequent catalog was
  431.    published three months after I wrote them and they wrote back
  432.    saying they would make the change.  It is my impression that
  433.    this was sheer carelessness on their part; but the mistake,
  434.    particularly after they were notified and had three months to
  435.    correct it, was a grave one.  I considered the prohibition
  436.    necessary to protect my copyright.  The prohibition was lifted
  437.    when they published a catalog with a corrected entry for
  438.    A86/D86.
  439.                                                               1-6
  440.  
  441. Sources and Copyright Status of ZIPKEY's Database
  442.  
  443. ZIPKEY's database consists of over 42000 zipcode entries,
  444. covering over 31000 different cities and towns.  It was created
  445. using numerous different references, most notably the data files
  446. provided by the U.S. Postal Service correlated against the cities
  447. and zipcodes from the 150000-entry database of a fair-sized mail
  448. order firm.  The latter "real-world" data provided much better
  449. accuracy in terms of the city names people actually use for their
  450. own addresses, as opposed to the Postal Service's
  451. officially-designated "primary city" for a zipcode.  The
  452. following references were also used, as a part of an extensive
  453. cross-checking and verification effort:
  454.  
  455.    * maps and lists from several dozen telephone directories
  456.  
  457.    * U.S. Census data files
  458.  
  459.    * USPS National Five-Digit Zip Code & Post Office Directory
  460.  
  461.    * AAA Road Atlas
  462.  
  463.    * Rand McNally Commercial Atlas and Marketing Guide
  464.  
  465.    * National Atlas of the United States of America
  466.  
  467.    * Rand McNally Road Atlas
  468.  
  469.    * Bellcore Telephone Area Code Directory
  470.  
  471.    * ATT's ZIP-PHONE files
  472.  
  473. The resulting ZIPKEY database differs by thousands of entries
  474. from any database that could be derived by mechanical means from
  475. any of the sources I have mentioned.  It is much more accurate
  476. than any of the sources for its purpose: to provide the city name
  477. actually used by the most people in a given zipcode.
  478.  
  479. So the ZIPKEY database contains a large body of information that
  480. is public knowledge, but at the same time represents a
  481. substantial creative compilation effort.  It enjoys the same
  482. copyright protection as other reference works, such as
  483. dictionaries, that contain compilation effort.  You may use the
  484. ZIPKEY database as a reference source, but you cannot simply
  485. unpack and publish the database without independently
  486. cross-checking and verifying the entire work, and adding
  487. substantial effort to make it your own.  If you do such
  488. unverified publishing, you will be in violation of federal
  489. criminal copyright law.
  490.                                                               1-7
  491.  
  492. Note that a skilled programmer can use ZIPKEY's programmatic
  493. interface to unpack ZIPKEY.OVL into an ASCII format.  Again, I
  494. emphasize that the data in ASCII still contains my creative
  495. compilation effort, and is still under my copyright.  You may
  496. create and manipulate such a data file from the keyboards for
  497. which ZIPKEY is licensed, but you are specifically prohibited
  498. from distributing such data to non-licensed computers, or in any
  499. printed format.
  500.  
  501.  
  502. Difference Between the Evaluation and Registered Versions
  503.  
  504. The evaluation copy of ZIPKEY has full functionality.  The only
  505. differences between the evaluation and registered versions are as
  506. follows:
  507.  
  508. 1. The evaluation version is distributed as an EXE file, and the
  509.    registered version is distributed as a COM file.
  510.  
  511. 2. The version number, that appears on the console when ZIPKEY is
  512.    run and also on the signon popup window, has an "e" appended
  513.    to it for the evaluation copy.
  514.  
  515. 3. Some of the help messages of the program are different, to
  516.    reflect the program's registered vs. evaluation status.  But
  517.    there is no missing information in the evaluation copy.
  518.  
  519. 4. When you issue the ZIPKEY 4 command (typically in AUTOEXEC.BAT
  520.    when the computer is started up), the evaluation copy of
  521.    ZIPKEY will check dates before it executes your command to
  522.    install ZIPKEY in memory.  If it is now the second month after
  523.    you have created a ZC file, ZIPKEY reminds you that you need
  524.    to register, and invites you to fill out an order form.  You
  525.    can type N to the invitation and ZIPKEY will be installed
  526.    normally and work just fine.  I'm just hoping you'll get tired
  527.    of having to type that N every time you start your computer,
  528.    and send for the registered copy.
  529.  
  530. 5. The evaluation copy will refuse to install a ZIPKEY.OVL
  531.    database whose free distribution is not yet allowed (less than
  532.    six months old).  If everyone follows the distribution rules,
  533.    this prohibition should never be encountered.  If you do
  534.    encounter it, type DATE to the DOS pronpt to make sure your
  535.    own date is set correctly!
  536.  
  537.  
  538. Naming Conventions for Distribution
  539.  
  540. This section describes the naming conventions I'd like you to use
  541. when distributing files, especially on bulletin-board systems.
  542. I'm not putting any legal insistence behind these conventions;
  543. I'm just giving them so that there can be standardization.  If
  544. their names follow these conventions, my files should be easier
  545. to find on BBS's, and there should be less duplication of
  546. identical files with different names.
  547.                                                               1-8
  548.  
  549. If you distribute files in a compressed format, using PKZIP, ARC,
  550. ZOO, or a similar program, I recommend that the evaluation
  551. ZIPKEY.EXE file and the manual be packed together into one file,
  552. and the ZIPKEY.OVL file be provided as a second file.
  553.  
  554. If you are a BBS sysop, with the ability to delete files on your
  555. BBS, you can maintain the single name ZIPKEY for the package.
  556. The compressed EXE-and-manual file can have the extension (.ZIP,
  557. .ARC, etc.) reflecting the compressing program used.  The OVL
  558. file can keep its name ZIPKEY.OVL.  ZIPKEY.OVL does not need to
  559. be compressed-- it's already so compact that there is little or
  560. no further gain from compression.
  561.  
  562. If you are uploading to a BBS on which you cannot delete the
  563. previous version, I suggest that the names contain the version
  564. information. The EXE-and-manual file should be named ZKxx, where
  565. xx is the ZIPKEY.EXE version number -- for example, ZK202.ARC for
  566. ZIPKEY V2.02e.  The ZIPKEY.OVL file should be stored using a
  567. compression program (not for the compression, which is minimal,
  568. but so that the file will be named ZIPKEY.OVL again when it is
  569. extracted).  The compressed OVL file should be named ZKmmyy,
  570. where mm is the 2-digit month and yy is the year of the ZIPKEY
  571. database -- for example, ZK1190.ARC for the November, 1990
  572. version of the data.
  573.  
  574. Here are sample directory lines for ARC files, including
  575. recommended comment lines:
  576.  
  577. ZK202.ARC        ZIPKEY zipcode dir V2.02 prog/doc, 1 of 2
  578. ZK1190.ARC       ZIPKEY.OVL 11/90 zipcode data,     2 of 2
  579.  
  580. Note that the data file does NOT contain the program version
  581. number in its comment line.  I will be releasing new data files
  582. more often than new program versions, so that the data file is
  583. not married to the program version number.  People will be able
  584. to download new data files even if they already have the latest
  585. program version.
  586.  
  587.  
  588. About the Author
  589.  
  590. I am a professional software author.  I have been programming for
  591. myself since 1965, and professionally since 1975.  I worked for
  592. Intel Corporation for several years, first as a subcontractor,
  593. then as an employee, and then as an independent contractor.  I
  594. have also done contract work for numerous other software firms.
  595. In 1986 I started marketing programs directly to the public,
  596. releasing my A86 assembler and D86 debugger packages as
  597. shareware.  I have been making a living from A86/D86 receipts
  598. since 1987, supporting myself, my wife, and my daughter.  A86 is
  599. my first (computer) love, and I will continue to support and
  600. improve it-- ZIPKEY was developed using A86/D86, and I refuse to
  601. write code using anyone else's compilers.  But the market for
  602. assemblers is rather narrow, fiercely competitive, and
  603. surprisingly crowded with products.  I didn't think I would make
  604. a living indefinitely from A86/D86 alone.
  605.                                                               1-9
  606.  
  607. Enter ZIPKEY.  In the summer of 1988 I was persuaded by a friend
  608. that the world needed a zipcode-directory and
  609. keyboard-enhancement program.  I naively thought I could complete
  610. the program in about ten weeks.  At my level of experience I
  611. should have known better-- the first release took about seven
  612. months of full-time work.  (My only consolation for this
  613. scheduling embarrassment is that another friend of mine, with
  614. even more experience in computers than I have, thinks that he
  615. could have produced a marketable product in about one week!)  The
  616. resulting product is much more powerful and elaborate than the
  617. original vision.  The extra time spent also reflects the
  618. difference between a software tool and a professional-quality
  619. software product -- self-documentation, internal error detection
  620. for "bullet-proof" operation, configurability to anticipate a
  621. wide range of uses, and extensive testing in the field to enhance
  622. the program's design as well as its reliability.
  623.  
  624.  
  625. How to Contact Me
  626.  
  627. I have no plans to move from my present location at least through
  628. the millennium.  So you can write to:
  629.  
  630.     Eric Isaacson Software
  631.     416 East University Ave.
  632.     Bloomington, IN 47401-4739
  633.  
  634. or call (812)339-1811.
  635.  
  636. Sorry, I can't guarantee to return everybody's long distance
  637. calls.  If you'd like to be SURE I'll get back to you, please
  638. invite me to call you back collect, or tell me to charge the cost
  639. of the call to your credit card.
  640.  
  641. I also accept BBS mail at PC-Link Central, (812)855-7252, which I
  642. try to check into daily.  Type J when you get on that system,
  643. then select the menu number to reach my conference. I also check
  644. into Compuserve every 10 days or so-- my ID number there is
  645. 71520,74.
  646.  
  647. If you have extraordinary difficulty contacting me, write the ASP
  648. Ombudsman, 545 Grover Road, Muskegon, MI 49442-9427.  He'll also
  649. try to mediate any business problems people might have with
  650. shareware authors or distributors.
  651.  
  652. PLEASE contact me if you find bugs in my programs; I'll fix them!
  653. I accept bug reports from anyone, registered or non-registered,
  654. no questions asked.  It's very frustrating to hear about people
  655. telling each other about bugs, and not telling me.  I still await
  656. Greg Wettstein's A86 bug list.
  657.  
  658. CHAPTER 2   LOOKING UP ZIPCODES
  659.  
  660.  
  661. In this chapter we'll explore all of ZIPKEY's search
  662. capabilities, accessible from ZIPKEY's popup window.  As you read
  663. along, you can execute the examples given from ZIPKEY's
  664. demonstration mode, which pops up the ZIPKEY window without
  665. installing ZIPKEY as a program permanently resident in your
  666. computer's memory.  Occasionally I'll talk about what happens in
  667. the keystroke playback sequence, which occurs in ZIPKEY's
  668. memory-resident mode.  Those features will show themselves after
  669. you've configured ZIPKEY and then installed the program
  670. permanently in memory, as described in Chapters 3 and 4.
  671.  
  672.  
  673. Demonstration Mode
  674.  
  675. You can enter ZIPKEY's demonstration mode by selecting option 2
  676. from ZIPKEY's main menu, or directly from the DOS command prompt
  677. by typing
  678.  
  679.    ZIPKEY 2
  680.  
  681. followed by the Enter key.  If there is enough memory, ZIPKEY
  682. will load the entire zipcode database into memory for the
  683. demonstration.  If you are running ZIPKEY from a floppy disk,
  684. this will take a few seconds (but the subsequent searches will be
  685. breathtakingly fast if you're accustomed to floppy access speeds
  686. for data lookup).  After the data is loaded, ZIPKEY's window will
  687. pop up onto your screen, with the ZIPKEY signon message.  As long
  688. as any ZIPKEY window is on the screen, it will tell you what
  689. ZIPKEY expects you to be typing next, at or near the blinking
  690. cursor.  Whenever the popup window is visible (whether in
  691. demonstration mode or memory-resident mode), you can return to
  692. the signon window by pressing the Home key, or you can pop away
  693. the window by pressing the Esc key.
  694.  
  695. Whenever a zipcode specification is complete, ZIPKEY invites you
  696. to confirm the entry by typing the Enter key.  In demonstration
  697. mode, this will simply return you to the signon window, ready to
  698. type another specification.  Later, when you install ZIPKEY as a
  699. memory-resident program, the confirming Enter will initiate the
  700. keystroke playback sequence, in which ZIPKEY fools your computer
  701. (and whatever program you are running) into thinking you have
  702. typed a complete city/state/zip combination.
  703.  
  704.  
  705. Signon Window
  706.  
  707. The signon window contains information establishing my copyright
  708. and advertising my name and address.  It also tells whether you
  709. are running the evaluation copy of the program or the registered
  710. user's copy.  This information exists to remind you that ZIPKEY
  711. is not in the public domain, and that I appreciate being paid for
  712. my efforts.  But it doesn't waste your time-- you can start
  713. typing your zipcode specification right away.
  714.  
  715. The blinking cursor appears just beyond the prompt indicating
  716. each of the four types of zipcode search available to you:
  717.                                                               2-2
  718.  
  719. 1. If you type a digit (0 through 9), ZIPKEY treats it as the
  720.    start of a zipcode to look up.
  721.  
  722. 2. If you type a letter, ZIPKEY assumes you are typing a
  723.    two-letter state abbreviation, to be followed by a city name.
  724.  
  725. 3. If you type a question mark, you are signalling ZIPKEY that a
  726.    city name without a state will follow.  For convenience, the
  727.    unshifted / does the same thing.
  728.  
  729. 4. If you type a left square bracket [, you are signalling ZIPKEY
  730.    that a telephone area code will follow.
  731.  
  732. There is a fifth specification type, not mentioned explicitly on
  733. the window: the quote mark " to repeat the last zipcode.
  734.  
  735. We'll discuss each search type individually in the following
  736. sections.
  737.  
  738.  
  739. Zipcode Search
  740.  
  741. The zipcode search is simple: you type in a five-digit zipcode,
  742. and ZIPKEY instantly tells you the associated city, if there is
  743. one, with its state and area code.  If the zipcode isn't in the
  744. directory, ZIPKEY will tell you and try to make a guess as to
  745. what city it might be. You can either accept the guess with a
  746. confirming Enter key, correct the entry with the backspace key,
  747. or explore nearby zipcodes with the arrow keys (described
  748. shortly).
  749.  
  750. ZIPKEY is so fast that it can afford to display intermediate
  751. results as you type each digit of the zipcode.  Most people will
  752. ignore these results when typing in most zipcodes-- they are
  753. frills added to make ZIPKEY a little more convenient (and more
  754. fun).  Here is a description of what you see after each digit,
  755. that you can follow while typing the sample zipcode 47125:
  756.  
  757. 1. After you type one digit, ZIPKEY lists the possible states
  758.    having zipcodes with that first digit.  If a state from this
  759.    list has a zipcode after it, that is the only zipcode from
  760.    that state having the indicated first digit.  For example,
  761.    type 4 when you see ZIPKEY's signon window.  The list of
  762.    states includes Wisconsin 49936.  All of Wisconsin's zipcodes
  763.    start with 5, except Alvin, Wisconsin, which gets its mail
  764.    from a nearby Michigan post office and thus has a Michigan
  765.    zipcode.
  766.  
  767. 2. After two digits, ZIPKEY lists the ten zipcode regions that
  768.    begin with those two digits.  In our example, if you type the
  769.    second digit 7, you get a list of Indiana regions for zipcodes
  770.    beginning with 47: 470, 471, 472, etc.  If a third digit
  771.    yields no valid zipcodes, its line is blank on this display.
  772.                                                               2-3
  773.  
  774. 3. After three digits, ZIPKEY lists the main city for the zipcode
  775.    region.  Zipcodes are organized around three-digit regions:
  776.    all non-local mail is sorted according to region, and shipped
  777.    to a main center for that region.  Only when the mail reaches
  778.    the regional center is it sorted by the last two zipcode
  779.    digits.  Most cities listed by ZIPKEY are the postal service's
  780.    regional centers for those three digits, but many are not.
  781.    The exceptions are the regions surrounding large cities, in
  782.    which the cities themselves have their own first-three digits.
  783.    The postal service considers the large city to be the regional
  784.    center; ZIPKEY will instead typically give the name of a large
  785.    suburb within that region.  For example, the postal service's
  786.    regional center for 471 is Louisville, KY, which handles the
  787.    mail for nearby areas across the Ohio River in Indiana.
  788.    ZIPKEY gives the main city for 471 as Jeffersonville, IN,
  789.    because it gives a better sense of where the region is.
  790.  
  791.    If you type a three-digit combination for which there are no
  792.    valid zipcodes, ZIPKEY will tell you, and ignore any
  793.    subsequent digits typed.
  794.  
  795.    Also included in the three-digit message is a reminder about
  796.    arrow keys during zipcode entry.  We'll discuss arrow keys
  797.    shortly.  The message applies just as well when any number of
  798.    digits are typed-- I placed it there in the three-digit case
  799.    because there is room on the window for it, and because I
  800.    wanted to let people who never read manuals know that the
  801.    feature exists.
  802.  
  803. 4. After four digits, ZIPKEY lists the city for each of the ten
  804.    possible values for the final digit.  If a final digit does
  805.    not have a valid city, its line is left blank.  For example,
  806.    after 4712, you'll see the listing of cities for 47120, 47121,
  807.    47122, etc.
  808.  
  809. 5. Finally, after 5 digits are typed, you get the city and its
  810.    telephone area code, with the invitation to confirm the entry
  811.    with the Enter key.  If there is no city for this zipcode,
  812.    ZIPKEY will guess the last valid zipcode's city, or, if the
  813.    zipcode is before the first or beyond the last valid zipcode
  814.    for the region, ZIPKEY will guess the main city for the
  815.    region.
  816.  
  817.    In demonstration mode, the confirming Enter key will put you
  818.    back to the signon window, ready to type in another zipcode
  819.    specification.  Later, when you run ZIPKEY as a
  820.    memory-resident program, the confirming Enter will pop away
  821.    the window and play the city/state/zipcode combination through
  822.    your keyboard.  The guessed city will be used if the zipcode
  823.    did not exist.  If you don't want the guessed city to be used,
  824.    you exit via the Esc key, and type in the city/state/zip
  825.    yourself.
  826.                                                               2-4
  827.  
  828. Arrow and Paging Keys During Zipcode Search
  829.  
  830. To allow exploration of ZIPKEY's database, ZIPKEY allows you to
  831. use the up-arrow, down-arrow, PgUp, and PgDn keys at any time
  832. during the entry of a zipcode.  These keys either add or subtract
  833. 1 from the value already typed, letting you "move" through the
  834. database.
  835.  
  836. The up-arrow key subtracts 1 from the digits typed (reflecting
  837. the fact that if the zipcodes were listed in order on a page, the
  838. zipcodes would decrease as you move physically up the page).  The
  839. down-arrow key adds one to the digits typed.  For example, if you
  840. type the single digit 0 to ZIPKEY's signon window, you'll get the
  841. list of states whose zipcodes begin with 0.  You can now press
  842. the down-arrow key repeatedly, to get the states lists for 1, 2,
  843. 3, etc.  You can go backwards by pressing the up-arrow key.
  844. Likewise, you can type the two digits 00 to ZIPKEY's signon
  845. window, then press down-arrow repeatedly to get successive lists
  846. of main region cities.  The value will increment from 09 to 10,
  847. so that the entire list of regions can be cycled through with 100
  848. presses of the down-arrow key.  You get similar results after 3,
  849. 4 and 5 digits -- the 4-digit case is most useful, letting you
  850. page through the individual cities in order.  Holding the
  851. down-arrow key down for auto-repeat with 4 digits typed will give
  852. you a sense of the sheer size of ZIPKEY's database, all packed
  853. into your computer's memory.
  854.  
  855. The PgUp and PgDn keys don't provide any radically new
  856. functionality over the up- and down-arrow keys: they simply work
  857. because you might subconsciously think you are in a
  858. word-processor, and expect them to work.  If you press PgUp or
  859. PgDn after 1, 2, or 4 digits are pressed, you get exactly the
  860. same action as the corresponding arrow key.  If you press PgUp or
  861. PgDn after 3 or 5 digits are pressed, ZIPKEY will drop you back
  862. to the 2- and 4-digit cases, respectively, to give you the
  863. "paging" action you might have expected.  If you have configured
  864. ZIPKEY not to display intermediate results (see Chapter 3 for how
  865. to do this), the PgUp and PgDn keys will temporarily enable the
  866. intermediate-results display.
  867.  
  868. Note that these "exploration" keys do not place you into any
  869. special mode: when the typed zipcode increments or decrements, it
  870. is just as if you had typed in the new digits in the first place,
  871. and you can continue typing the zipcode from the new value.  For
  872. example, any of the following keystroke sequences will get you
  873. from the signon window to zipcode 12345:
  874.  
  875.    12345
  876.    0{down}2345
  877.    2{up}2345
  878.    119{down}{down}{down}{down}45
  879.                                                               2-5
  880.  
  881. State and City Search
  882.  
  883. Now we'll discuss the case in which you know the city and state,
  884. and you want to look up the zipcode.  For this case, you start
  885. from ZIPKEY's signon window, and type the two-letter abbreviation
  886. for the desired state.  If you don't remember what the
  887. abbreviation is, don't worry: just type the first letter of the
  888. state's name, and you'll get a display of all the states, with
  889. their abbreviations, that begin with that letter.
  890.  
  891. Your entry of either the state code or the city name can be in
  892. either lower-case or upper-case: ZIPKEY doesn't care.  I give
  893. them in upper case in the following paragraphs just to make them
  894. easier for you to read.
  895.  
  896. After you type the two-letter state abbreviation, ZIPKEY prompts
  897. you for the city name.  As you type the city, ZIPKEY will look up
  898. all cities within that state that start with the letters you have
  899. typed so far.  As soon as there are 50 or fewer matching cities
  900. (usually after only one or two letters), ZIPKEY generates a
  901. display of matching cities.
  902.  
  903. For example, suppose you need to know the zipcode for Robinson,
  904. Illinois.  When you see the ZIPKEY signon window, you can type IL
  905. for Illinois, followed by the city name.  There are more than 50
  906. towns in Illinois whose name begins with R, so you don't get a
  907. display if you type just R.  But after you type the second letter
  908. O, a display is generated.  You may continue typing the city name
  909. until there is only one city left.  Or, once there is a display
  910. of cities, you can type a digit to select one of the cities on
  911. the list.  In the database current to this writing, Robinson is
  912. on the line numbered 3 in the RO display, so the complete
  913. specification ILRO3 will select Robinson.  In the ROB display
  914. Robinson moves up to number 2, so that ILROB2 would also select
  915. Robinson.  Robinson is the only city in Illinois starting with
  916. ROBI, so ILROBI would also select Robinson.
  917.  
  918. If there are more than ten cities in the generated display,
  919. you'll see PgDn displayed off the end of the tenth city.  This is
  920. your indication that the PgDn key will give you more cities.  If
  921. you type PgDn once, you'll get the second ten cities that match
  922. what you've typed so far.  A PgUp appears above the top right of
  923. the cities list, to signal that you can now page back to the
  924. first ten cities.  If there are still more cities beyond this
  925. group of ten, the PgDn indicator will remain.  For example,
  926. suppose you want to view all cities in Oregon whose name begins
  927. with the letter B.  You type ORB to the ZIPKEY signon window,
  928. followed by several PgDn keys to reveal several pages of Oregon
  929. "B"-cities.
  930.                                                               2-6
  931.  
  932. Multiple Zipcode Cities
  933.  
  934. If you perform a city search for a city having more than one
  935. zipcode, ZIPKEY will give you the complete list of zipcodes for
  936. that city, but it can't tell you which zipcode matches your
  937. address-- that's beyond the scope of ZIPKEY's city-level data
  938. base.  In this case, once the search has narrowed down to the
  939. single city, ZIPKEY invites you to complete the zipcode with the
  940. trailing digits it needs to resolve the multiple-zip ambiguity.
  941. In ZIPKEY's demonstration mode, this will serve no purpose other
  942. than to show you how the window will work in memory-resident
  943. mode.  In memory-resident mode, the digits you type are needed to
  944. provide the complete zipcode in the keystroke playback of
  945. city/state/zip.  If you type a confirming Enter at a time that
  946. ZIPKEY is prompting you to complete the digits of a zipcode,
  947. ZIPKEY will fill out the zipcode with 0's, just as you might do
  948. when addressing an envelope with a zipcode whose final digits you
  949. don't know.
  950.  
  951. For example, suppose you wish to look up the zipcode for
  952. Worcester, MA.  You type MAWORCES to the ZIPKEY signon window,
  953. which is more than enough to narrow the display to the single
  954. city.  Worcester has numerous different zipcodes, all beginning
  955. with 016.  ZIPKEY places the blinking cursor after the common
  956. digits 016, and invites you to complete the zipcode.  If you type
  957. 01, the prompt changes to a confirming Enter, and you'll get a
  958. keystroke playback of 01601 as the zipcode.  If you type Enter
  959. right away instead of 01, you'll get 01600 as the zipcode.  The
  960. Postal Service will send your first-class later to region 016,
  961. where it goes to a "don't know the zip" bin for special
  962. processing.
  963.  
  964. A note about the list of zipcodes for a city: it consists of a
  965. sequence of either individual zipcodes or zipcode ranges.  In a
  966. zipcode range, the first and last zipcodes are always valid
  967. zipcodes for the city displayed.  There will be no zipcodes in
  968. the range that represent a city different than the one displayed.
  969. However, there may be zipcodes within the range that are
  970. undefined.  For example, in the database current at this writing,
  971. the range 01613-55 for Worcester, MA represents a range running
  972. from 01613 to 01655.  You can view the range in detail if you
  973. switch back to zipcode lookup: type Home to return you to
  974. ZIPKEY's signon window, then type 0161 followed by four presses
  975. of the down-arrow key.  You'll see that there aren't any
  976. non-Worcesters between 01613 and 01655, but that most of the
  977. range is undefined.
  978.                                                               2-7
  979.  
  980. City-Only Search
  981.  
  982. ZIPKEY also allows you to search for a city name without
  983. specifying the state.  To use this feature, you type a question
  984. mark to the ZIPKEY signon window.  ZIPKEY will prompt for the
  985. city name, and tell you to press the Enter key when you want the
  986. search to begin.  This search requires ZIPKEY to walk through the
  987. entire zipcode database, which is too slow to display
  988. intermediate results.  You may type either a partial name (the
  989. first few characters), or a complete name.  When you press the
  990. Enter key, ZIPKEY will change the state display to the first
  991. state containing a matching city name, and list the matching
  992. cities.
  993.  
  994. If there are no matching cities, ZIPKEY tells you, and invites
  995. you to correct the entry with the backspace key.  Remember, you
  996. don't have to type the whole city name-- the first few letters
  997. may narrow the possibilities enough for you to find your city
  998. without risking a misspelling.
  999.  
  1000. Let's do a sample city-only search.  There's a commercial on TV
  1001. in which a woman tells how they prepare Shredded Wheat back home
  1002. in Nome.  A co-worker replies, "I didn't know you were from
  1003. Alaska.", to which the woman replies, "I'm not; I'm from Nome,
  1004. Texas."  As a vigilant ZIPKEY user, you wish to know if there are
  1005. any other Nomes out there.  You type ?NOME followed by the Enter
  1006. key to the ZIPKEY signon window.  ZIPKEY displays the first
  1007. state, Alaska, containing a Nome.  Now read on to the next
  1008. section to see how to get the other Nomes.
  1009.  
  1010.  
  1011. Moving From State to State
  1012.  
  1013. The city-only search just described will give you just the first
  1014. state containing a matching city.  To move on to subsequent
  1015. states, you press the down-arrow key.  So, from our previous
  1016. example, when you have Nome, Alaska selected, you press the
  1017. down-arrow key to find the next state containing a matching city.
  1018. ZIPKEY reveals a hitherto-unrevealed Nome, in North Dakota.
  1019. Pressing down-arrow again moves the display to the Nome, Texas of
  1020. the Shredded-Wheat woman.  Another down-arrow cycles us back to
  1021. Alaska, so we conclude that there are exactly three Nomes in the
  1022. database.
  1023.  
  1024. What happens when there is a state containing a matching city,
  1025. but that is the only such state?  If you press down-arrow, ZIPKEY
  1026. will take several seconds to try to find another state, then
  1027. return to the same display.  You can tell that the search is
  1028. complete because the blinking cursor goes to the state code
  1029. during the search, then returns to the city name when the search
  1030. is over.
  1031.                                                               2-8
  1032.  
  1033. Again, I've tried to minimize the number of special modes in
  1034. which you can be.  When you perform a city-only search, and reach
  1035. the first state, it is just as if you had typed that state's code
  1036. instead of ? in the first place.  Conversely, if you type a
  1037. state-and-city specification, you can move to other states with
  1038. that same city specification by pressing the down-arrow key to
  1039. move to the next state; or the up-arrow key to move to the
  1040. previous state containing a matching city.
  1041.  
  1042.  
  1043. Unabbreviation
  1044.  
  1045. For consistency and completeness, ZIPKEY's data base stores all
  1046. city names in a totally unabbreviated form, spelling out words
  1047. such as Saint, Sainte, Fort, Mount, North, South, East, and West.
  1048. (The one exception is the word "National" in cities containing
  1049. the phrase "National Park", which is stored as "Ntl".  I wanted
  1050. to minimize the number of excessively long city names.)  The
  1051. unabbreviated forms will not cause a problem for you if you need
  1052. to fit your city name into a fixed field, because ZIPKEY does a
  1053. good job of abbreviating names as necessary to fit in such fields
  1054. (details are in Chapter 3).  But you might forget to spell out a
  1055. name such as St. Louis when typing a city specification that you
  1056. would like ZIPKEY to search.  So ZIPKEY allows the abbreviations
  1057. St, Ste, Ft, Mt, N, S, E, and W for the above-mentioned full
  1058. names.  The abbreviations must be followed by a period or a space
  1059. for ZIPKEY to accept them.
  1060.  
  1061. For example, suppose you type MNST to the ZIPKEY signon window.
  1062. You'll get a list of Minnesota cities beginning with ST, and none
  1063. with Saint.  But if you now type a period or space, ZIPKEY will
  1064. switch to a list of Saint cities.
  1065.  
  1066.  
  1067. Telephone Area Code Search
  1068.  
  1069. You may use ZIPKEY to find out what geographical area is
  1070. associated with a given telephone area code.  Simply type a left
  1071. square bracket [ followed by a three-digit area code.  If an area
  1072. code is the only code for its state, you'll be told the name of
  1073. that state.  If there are other area codes within the state,
  1074. ZIPKEY will give a list of sample cities, to give you an idea of
  1075. what part of the state your area code covers.
  1076.  
  1077. Note that for APO/FPO and Pacific territories, ZIPKEY returns an
  1078. "area code" of 011 -- that's actually the direct-dial access code
  1079. for overseas. Since 011 is not a true area code, the [ search
  1080. doesn't recognize 011: I didn't think it was worth the special
  1081. coding necessary.
  1082.                                                               2-9
  1083.  
  1084. Repeat Last Zipcode
  1085.  
  1086. Finally, we cover a fifth specification that can be typed from
  1087. ZIPKEY's signon window-- a double-quotes mark " to call up the
  1088. last zipcode returned.  This option exists to accommodate hotkeys
  1089. that repeat the last zipcode specified, and also hotkeys that
  1090. play back a keystroke sequence unrelated to any zipcode.  These
  1091. possibilities are covered, with examples, in Chapter 3, in the
  1092. fixed-keystrokes option of the Zipcode Source section.
  1093.  
  1094. Typing the quotes mark " causes ZIPKEY to display the previous
  1095. zipcode, city, and state found, and immediately prompt for the
  1096. confirming Enter key.  The "previous" zipcode specification
  1097. starts out nonsense (Aaron, AL 00000 in the current database at
  1098. this writing) until a real zipcode is looked up.  The "previous"
  1099. specification does not change if a lookup is cancelled via Home
  1100. or Esc -- it changes only after the confirming Enter or alternate
  1101. exit key is pressed.
  1102.  
  1103. CHAPTER 3   ZIPKEY CONFIGURATION
  1104.  
  1105.  
  1106. In this chapter we discuss how you can tailor ZIPKEY to your
  1107. specific needs.  You can choose where the zipcodes are stored
  1108. when ZIPKEY is loaded into your computer's memory, which keys you
  1109. will press to invoke ZIPKEY, the location and color of the ZIPKEY
  1110. popup window, and the format for the city/state/zip combination
  1111. to be played back though your keyboard.
  1112.  
  1113. These adjustable selections for ZIPKEY are stored in a special
  1114. file on your disk, called a ZC (for ZIPKEY Configuration) file.
  1115. Every time ZIPKEY is installed in your computer's memory, a ZC
  1116. file is automatically read, to determine all of the configuration
  1117. choices you made.
  1118.  
  1119.  
  1120. Determining Your Configuration Needs
  1121.  
  1122. Before you attempt to create a ZC file, you should spend a little
  1123. time exploring how you are currently typing in addresses.  In
  1124. order to let ZIPKEY fool the computer into thinking you have
  1125. typed in a complete city/state/zip, you'll have to tell ZIPKEY
  1126. exactly what you type-- this can include preliminary positioning
  1127. keystrokes, intervening keystrokes for punctuation, spacing, or
  1128. further positioning, and trailing keystrokes for termination or
  1129. still more positioning.
  1130.  
  1131. For example, suppose that you use two different programs to enter
  1132. addresses: a database management program and a word processor.
  1133. Before you try to configure ZIPKEY, you should invoke each
  1134. program and type in a sample address.  You enter the database
  1135. manager, which puts an address template onto the screen.  You
  1136. type in a name and an address, noticing that you use the Enter
  1137. key to move from field to field.  You press the Enter key to
  1138. reach the start of the city field.  At this point, you should
  1139. count the number of available spaces in the city field.  If this
  1140. is visually difficult, the sample name you type can assist you:
  1141. type Xxxx xxxx xxxx xxxx etc. to mark spaces.  Let's suppose
  1142. there are 17 spaces available.  Make a note of this number:
  1143. ZIPKEY will need it.  You press the Enter key to advance the
  1144. cursor to the two-letter state abbreviation field.  You type a
  1145. sample two-letter state code, and notice that the cursor
  1146. automatically advances to the zipcode field without your typing
  1147. Enter -- such a detail is important for the accurate recording of
  1148. the keystroke sequence.  Then you type the five-digit zipcode and
  1149. notice that another Enter is required to advance the cursor to
  1150. the telephone field. Finally, you type the area code, a minus
  1151. sign (hyphen), and the telephone number.  So the exact keystroke
  1152. sequence for getting from the last field before the city to the
  1153. hyphen after the area code is:
  1154.  
  1155. {Enter}C{Enter}AZ{Enter}T-
  1156.  
  1157. where the variable parts of the entry are denoted by the letters
  1158. C,A,Z,T.  Again, the lack of an {Enter} between A and Z reflects
  1159. the fact that the cursor moves automatically from the state
  1160. abbreviation to the zipcode field.
  1161.                                                               3-2
  1162.  
  1163. Now you discard the sample record you have created, exit your
  1164. database manager, and invoke your word processor.  You use this
  1165. program to type letters: addresses are typed in as a letterhead.
  1166. The format consists of the city name, a comma, a space, the
  1167. two-letter state abbreviation, a space, the zipcode, and two
  1168. Enter keys.  In our notation, this is
  1169.  
  1170. C, A Z{Enter}{Enter}
  1171.  
  1172. with no limitation to the length of the city name.  You have now
  1173. gathered the information needed for a ZIPKEY specification.  You
  1174. can exit your word processor and invoke ZIPKEY's configuration
  1175. option, described in the next section.
  1176.  
  1177.  
  1178. How to Create a ZC File
  1179.  
  1180. You create a ZC file by selecting ZIPKEY main menu option 3,
  1181. "Configure ZIPKEY for memory-resident use".  You may also go
  1182. directly to this option from DOS's command prompt, by typing
  1183. ZIPKEY 3 followed by the Enter key.  If you've never configured
  1184. ZIPKEY before, you will immediately be given the configuration
  1185. questionnaire, as described in the following sections.  If you
  1186. have already configured ZIPKEY, you will be given the
  1187. configuration editing menu.  You can repeat the entire
  1188. configuration by choosing option 1, "Replace entire
  1189. configuration."
  1190.  
  1191.  
  1192. Default Options
  1193.  
  1194. The following sections describe each configuration option you'll
  1195. encounter.  Before we begin each option, however, let's discuss a
  1196. feature that covers the entire ZIPKEY configuration process: the
  1197. default option.
  1198.  
  1199. In most situations during ZIPKEY configuration, ZIPKEY attempts
  1200. to discern what option it thinks you are most likely to select.
  1201. It will display that option underneath the current cursor
  1202. position as it waits for your response.  If you wish to select
  1203. this default option, you may do so explicitly by retyping the
  1204. already-displayed selection.  But you can also select the default
  1205. option by simply pressing the Enter key.
  1206.  
  1207. If you are respecifying a previously-existing configuration, the
  1208. default options will be those from the old file.  You can press
  1209. Enter for those sections that you don't want to change.  If you
  1210. are configuring for the first time, the default is the option
  1211. that I think most people will choose.  If you are confused by an
  1212. option and aren't sure what to select, press Enter to get the
  1213. default setting.
  1214.                                                               3-3
  1215.  
  1216. Memory Model
  1217.  
  1218. ZIPKEY consists of two parts: the ZIPKEY program that controls
  1219. ZIPKEY's functions, and the database that contains the zipcodes
  1220. themselves.  When you install ZIPKEY as a memory-resident
  1221. program, the ZIPKEY program is always installed in your main
  1222. computer memory -- it occupies about 20000 bytes (20K of the 640K
  1223. available in most late-model computers).  You don't have any
  1224. choice as to where the ZIPKEY program is stored.  However, you do
  1225. have a choice as to where the database (occupying about 128K) is
  1226. stored:
  1227.  
  1228. 1. You may have the database stored in Lotus-Intel-Microsoft
  1229.    expanded (EMS) memory.  This is a special kind of memory,
  1230.    provided by add-on boards such as Intel's AboveBoard, designed
  1231.    to break the 640K memory capacity "barrier" of the IBM-PC
  1232.    family.
  1233.  
  1234.    If you're not sure whether your system has EMS memory, don't
  1235.    worry: ZIPKEY determines this for you, and makes this option
  1236.    the default if there is sufficient EMS memory available to
  1237.    load the database.
  1238.  
  1239.    If this option is available to you, it is usually the best.
  1240.    It allows the fastest access to the database without occupying
  1241.    main memory, and it avoids any potential problems resulting
  1242.    from attempting to access the disk from a popup utility.
  1243.  
  1244. 2. You may keep the database on your disk, causing ZIPKEY to
  1245.    access the database file every time it looks up a zipcode.
  1246.    This option is slower than the other two options, but not too
  1247.    slow: only two disk read operations (maximum 400 bytes and
  1248.    usually much less) are required to look up each zipcode entry.
  1249.    On a hard disk this takes a small fraction of a second.
  1250.  
  1251. 3. You may load the database into main memory.  This allows the
  1252.    same fast access as the EMS option (maybe even a shade
  1253.    faster), but it means that every other program running on your
  1254.    computer will have 128K bytes less memory to work with.  There
  1255.    are many situations in which this won't be a problem: for
  1256.    example, if the computer is dedicated as a workstation for
  1257.    order entry, you can experiment to see if it works just as
  1258.    well with ZIPKEY's data stored in main memory.  If it does,
  1259.    fine: you get the fastest access without having to buy an EMS
  1260.    memory board.
  1261.  
  1262. There is an additional question if you did not choose to keep the
  1263. data on the disk (you chose EMS or main memory instead).  ZIPKEY
  1264. asks if you will be running Desqview after installing ZIPKEY.
  1265. This option will force ZIPKEY to make an additional compatibility
  1266. check before popping up its window (the check is made anyway if
  1267. the data comes from the disk).  Even if you don't run Desqview,
  1268. if you have problems with ZIPKEY in EMS or main-memory mode, but
  1269. not in disk-mode, you should try answering Y to this question.
  1270.                                                               3-4
  1271.  
  1272. Intermediate Results
  1273.  
  1274. As an added convenience (and also for fun!) ZIPKEY is capable of
  1275. displaying what it knows about the specification you have typed
  1276. so far.  For example, if you have typed in exactly 4 of the 5
  1277. digits of a zipcode, ZIPKEY will display a list of the 10
  1278. possibilities for the fifth digit.  If you type a partial
  1279. specification and then use the up-arrow, down-arrow, PgUp, and
  1280. PgDn keys, you can "explore" the database.
  1281.  
  1282. There are two reasons why you might want to suppress the display
  1283. of intermediate results: first, to avoid the time it takes to
  1284. look them up.  If you are getting the zipcode data from a slow
  1285. disk, or you are running on an older slow (4.77 MHz) computer,
  1286. then the results are likely to lag a bit behind your typing.  The
  1287. lag is typically no more than about a second-- it's a matter of
  1288. taste whether this is acceptable to you.  The second reason for
  1289. suppressing intermediate results is purely a matter of taste: you
  1290. might be visually annoyed by all that unused information flashing
  1291. past as you type.  If that is the case, however, you may wish to
  1292. choose the option (described later) of taking zipcodes from the
  1293. screen -- that way you can arrange for ZIPKEY's window not to pop
  1294. up at all, which absolutely minimizes the visual distraction.
  1295.  
  1296.  
  1297. Numlock On
  1298.  
  1299. This is a feature inspired by the possibility of using the 5 key
  1300. on the numeric keypad as the "hotkey" that will pop up ZIPKEY's
  1301. window.  If you habitually compute with Numlock turned off, the 5
  1302. key has no other useful function.  If that is the case, since
  1303. your hand is already on the numeric keypad, you may wish to keep
  1304. it there to type in the zipcode.  By selecting this option, you
  1305. are instructing ZIPKEY to activate Numlock when its window pops
  1306. up.  ZIPKEY will restore the old status of Numlock when the
  1307. window pops away.
  1308.  
  1309.  
  1310. Slow Down Keyboard
  1311.  
  1312. This option insures that ZIPKEY doesn't provide keystrokes too
  1313. fast for your program to successfully digest.  To be on the
  1314. conservative side, you should select Y for this option when you
  1315. configure ZIPKEY for the first time.  Then, after you have ZIPKEY
  1316. working, you can try changing this option to N, so that the
  1317. entire city/state/zip combination appears instantaneously in your
  1318. program.
  1319.  
  1320. Two programs that definitely need Y are the Condor database
  1321. system, and older versions of the Wordstar word processor.
  1322.                                                               3-5
  1323.  
  1324. If you select N when you needed Y, you'll see missing keystrokes
  1325. in the playback of city/state/zip.  The problem exists in some
  1326. modern programs, but it is most common in older programs.  The
  1327. problem was made widespread when Borland, in its Turbo Pascal
  1328. version 2, published a recommended procedure for programs to
  1329. fetch keystrokes from the computer.  The procedure involved
  1330. fetching each keystroke two or three times, relying on the fact
  1331. that no human could type the next key before such multiple
  1332. fetches were made.  This programming method did not foresee the
  1333. advent of keyboard enhancement programs such as SmartKey, ProKey,
  1334. and now ZIPKEY, that simulate keyboard typing at computer speeds.
  1335.  
  1336.  
  1337.  
  1338. Window Characteristics
  1339.  
  1340. This section of ZIPKEY's configuration allows you to adjust the
  1341. visual characteristics of ZIPKEY's popup window.
  1342.  
  1343. ZIPKEY tries to present you with a window that is both easily
  1344. noticed and unobtrusive.  To be easily noticed, ZIPKEY pops a
  1345. window with a different color than the underlying screen (reverse
  1346. video for monochrome monitors).  To be unobtrusive, ZIPKEY avoids
  1347. popping up in a location that would cover up the current cursor
  1348. location on the screen.
  1349.  
  1350. For windows configuration, ZIPKEY simultaneously pops up two
  1351. windows.  The main window shows where ZIPKEY usually pops up.
  1352. The alternate window shows where ZIPKEY pops up if the main
  1353. window would cover the current cursor position.   You can
  1354. eliminate the alternate window (thus disabling the cursor-dodging
  1355. feature) by pressing the F5 key, which toggles the alternate
  1356. window on and off.  You'll need to disable the alternate window
  1357. if you want the main window to pop up in the middle of the
  1358. screen, where there isn't room on either side for an alternate
  1359. window.  You can swap the main and alternate windows by pressing
  1360. the F6 key.
  1361.  
  1362. During this configuration window display, you can use the arrow
  1363. keys (Up, Down, Left, or Right) to move the main window.  You
  1364. cannot move the alternate window directly, but you can
  1365. temporarily swap the main and alternate windows with F6, move the
  1366. temporarily-main window, and then reswap with F6 again.
  1367.  
  1368. The remaining function keys are used to adjust the colors for the
  1369. popup window.  The internal numeric codes for the colors are
  1370. displayed, so that you can manually record the settings if you
  1371. wish.  There are two function keys for each setting: one to
  1372. decrement the numeric code, the other to increment the code.  F1
  1373. and F2 change the window color (sometimes called the "background"
  1374. color) usually displayed.  F3 and F4 change the text
  1375. ("foreground") color.  If most of the underlying screen (actually
  1376. a diagonal sample of cells, to save time) is the same background
  1377. color as the window's main color, then ZIPKEY uses the alternate
  1378. color, displayed on only four lines of the main configuration
  1379. window.  The alternate window color is adjusted by F7 and F8; the
  1380. text color by F9 and F10.
  1381.                                                               3-6
  1382.  
  1383. When you have completed adjusting the windows to your taste, you
  1384. press the Enter key to pop away the configuration windows, and
  1385. move on to the next stage of configuration.
  1386.  
  1387.  
  1388. Monochrome and Color Window Settings
  1389.  
  1390. If you are installing ZIPKEY on multiple computers, some with
  1391. monochrome screens and others with color screens, then you should
  1392. create your ZC file on one type of screen, and modify it for
  1393. window colors on another computer with the other type of screen.
  1394. ZIPKEY stores separate color codes for monochrome and color
  1395. screens.  When it is installed, ZIPKEY detects whether you have
  1396. color or monochrome.  If you have a color screen, ZIPKEY uses the
  1397. selections you configured on a color screen; if you have a
  1398. monochrome screen, ZIPKEY uses the other selections you made on
  1399. monochrome.  Thus, you don't need to have a different ZC file for
  1400. your monochrome vs. color computers.
  1401.  
  1402.  
  1403. Hotkey Configuration
  1404.  
  1405. All of the options described up to now are general settings--
  1406. they determine the overall characteristics of ZIPKEY, that don't
  1407. depend on which hotkey was pressed to invoke ZIPKEY.  Now we'll
  1408. discuss the characteristics specific to hotkeys -- they change
  1409. depending on the keystroke combination used to invoke ZIPKEY.
  1410.  
  1411. We recall the example spelled out in the section "Determining
  1412. Your Configuration Needs" earlier in this chapter.  In that
  1413. example, you will invoke ZIPKEY in two different contexts: from
  1414. within a database manager, and also from within a word processor.
  1415. The format for typing city/state/zipcode differs in the two
  1416. contexts.  In the following sections, we'll present one method of
  1417. handling the difference: we'll define two different hotkey
  1418. combinations to invoke ZIPKEY.  One hotkey is to be used while in
  1419. the database manager, and the other hotkey is to be used while in
  1420. the word processor.  Later, we'll talk about other ways to handle
  1421. the difference (with alternate exit keys, or with alternate named
  1422. ZC files).
  1423.  
  1424.  
  1425. Hotkey Name
  1426.  
  1427. The first part of a hotkey specification is its name-- the
  1428. combination of keystrokes you will use to invoke ZIPKEY.  To
  1429. detect hotkeys, ZIPKEY monitors the signals coming directly from
  1430. the keyboard into your computer, so that ZIPKEY can tell when you
  1431. have pressed keys simultaneously.  You should select some
  1432. combination of keys that won't be pressed for any purpose other
  1433. than invoking ZIPKEY.  Often you won't need a combination: you
  1434. might find some individual keys on your keyboard that are
  1435. otherwise unused.  Here are some ideas for hotkeys you can use:
  1436.                                                               3-7
  1437.  
  1438. 1. We've already mentioned the 5 key on the numeric keypad.  Of
  1439.    course, you should only choose this if you habitually keep
  1440.    Numlock off.  Otherwise, you wouldn't be able to use the
  1441.    keypad to type any numbers containing the digit 5.
  1442.  
  1443. 2. Other individual keys that are seldom used are the F11 and F12
  1444.    keys on the newer-generation keyboards, and the SysReq key on
  1445.    the AT keyboard.
  1446.  
  1447. 3. If the computer using ZIPKEY is dedicated to a single purpose,
  1448.    such as order entry, you might have a printing key on your
  1449.    keyboard, such as the back-quote key, that is almost never
  1450.    used.  You can make this key a ZIPKEY hotkey without causing
  1451.    too much inconvenience.  If you do so, you may wish to define
  1452.    Alt-backquote as a special hotkey that produces a back-quote
  1453.    (how to do this is discussed later).
  1454.  
  1455. 4. Exotic combinations of the shifting keys (Shift, Ctrl, Alt),
  1456.    possibly combined with a single non-shifting key, are often
  1457.    used as hotkeys to invoke memory-resident programs.  Examples:
  1458.    Ctrl-RightShift, both Shift keys, Ctrl-Shift-Z, or both Shift
  1459.    keys and Z.  A couple of cautions are in order here: First, if
  1460.    there are other memory-resident programs residing
  1461.    simultaneously with ZIPKEY, you must insure that every
  1462.    programs' hotkeys can be detected by that program.  For
  1463.    example, Ctrl-Alt-Z wouldn't be a good ZIPKEY hotkey if you
  1464.    have Sidekick, because Sidekick would pop in when it saw the
  1465.    Ctrl-Alt.  Second, you should be aware that ZIPKEY
  1466.    distinguishes between left and right shifting keys.  If you
  1467.    don't want ZIPKEY to distinguish, you can define identical
  1468.    hotkeys with each combination.
  1469.  
  1470. 5. If you've used up all the obvious sequences, ZIPKEY allows
  1471.    combinations not usually seen in hotkeys; namely, you can have
  1472.    more than one non-shifting key.  A mnemonic choice would be
  1473.    the Z and C keys pressed simultaneously-- they're close
  1474.    together but not adjacent so the combination won't be pressed
  1475.    accidentally.  This hotkey requires an extra consideration:
  1476.    from the computer's point of view, the keys will never be
  1477.    simultaneous: one code will always be received before the
  1478.    other.  ZIPKEY doesn't care which key comes first, as long as
  1479.    the second key is pressed before the first one is released.
  1480.    But before ZIPKEY can pop up, one of the two keycodes will be
  1481.    seen by the program (e.g. the database manager or word
  1482.    processor) that you're running.  So an unwanted Z or C will be
  1483.    displayed. You handle this in your returned city/state/zip
  1484.    keystroke sequence, by specifying the first returned keystroke
  1485.    to be the backspace key, wiping out the Z or C.
  1486.  
  1487.    Another caution is in order for the most exotic sequences:
  1488.    some keyboards get confused by more than two non-shifting keys
  1489.    pressed simultaneously, and don't deliver all the codes to the
  1490.    computer for ZIPKEY to see. ZIPKEY lets you verify that your
  1491.    sequence is being received correctly, by echoing the sequence
  1492.    for confirmation.  You can experiment with various
  1493.    combinations to see what works, before confirming the name for
  1494.    your hotkey.
  1495.                                                               3-8
  1496.  
  1497. The echoing of your hotkey is based on the internal codes
  1498. delivered by the IBM-PC and 100%-compatible keyboards.   Most
  1499. keyboards are compatible with the IBM-PC, but some aren't.  For
  1500. those keyboards, the echoed names won't match the names of the
  1501. keys as you know them.  However, as long as the echoing is
  1502. consistent (you get the same thing on several tries), the hotkey
  1503. will work correctly when you use ZIPKEY.
  1504.  
  1505. Recalling our database/word processing example: let's assume you
  1506. have a newer-generation keyboard with F11 and F12 keys.  You'll
  1507. use F11 for the database hotkey and F12 for the word processing
  1508. hotkey.  So the first time you are prompted for a hotkey name,
  1509. type the F11 key for the name, and Y to confirm the name.
  1510.  
  1511.  
  1512. Zipcode Source
  1513.  
  1514. Once you have confirmed the name of a hotkey, ZIPKEY next asks
  1515. for the first action it should take when you have pressed the
  1516. hotkey.  There are four choices: first, ZIPKEY can simply pop up
  1517. its window and wait for the operator to type a zipcode
  1518. specification.  Second, ZIPKEY can look at the contents of the
  1519. video display, to find a zipcode that already appears on the
  1520. screen.  Third, ZIPKEY can pretend that it has popped up its
  1521. window and that a fixed sequence of zipcode specification
  1522. keystrokes has already been typed. Finally, ZIPKEY can look at
  1523. the last 16 keystrokes typed, and use the last 5 digits typed as
  1524. the zipcode to be searched.  Let's consider each choice in turn:
  1525.  
  1526. 1. The popup-window option is the simplest and most
  1527.    commonly-used.  There are no further configuration choices you
  1528.    need to make for this option.
  1529.  
  1530. 2. The video screen option is used when the zipcode has already
  1531.    been typed at the time ZIPKEY is invoked.  You can use this
  1532.    option to create a hotkey that verifies existing address
  1533.    records, or to create a data-entry scenario in which ZIPKEY's
  1534.    window normally doesn't pop up at all, and so is the most
  1535.    unobtrusive.
  1536.  
  1537.    If you choose to take the zipcode from the video screen,
  1538.    ZIPKEY will look for five consecutive digits on the same line
  1539.    as the cursor, or on an immediately adjacent line, above or
  1540.    below the current line.  If no five-digit sequence is seen,
  1541.    ZIPKEY will pop up a window just as if option 1 had been
  1542.    selected.  If a five-digit sequence is seen but it isn't a
  1543.    valid zipcode, ZIPKEY will pop up its window with that
  1544.    zipcode, and tell you that the city wasn't found.  For the
  1545.    final possibility, a valid five-digit zipcode, you have an
  1546.    option: you can have ZIPKEY pop up its window so that you can
  1547.    confirm the city, or you can have ZIPKEY automatically play
  1548.    back the city/state/zip sequence without popping up at all.
  1549.    If you want to allow the possibility of using alternate exit
  1550.    keys (described later), you must choose to have ZIPKEY always
  1551.    pop up the window.
  1552.                                                               3-9
  1553.  
  1554.    What happens if there is more than one five-digit sequence on
  1555.    the screen? ZIPKEY uses the first sequence it finds, searching
  1556.    in the following order: first, it starts five characters
  1557.    beyond the current cursor position, looking backwards to the
  1558.    start of the current line.  Then it looks from the current
  1559.    cursor position forwards to the end of the current line.  Then
  1560.    it looks backwards from the end to the start of the line above
  1561.    the current cursor position.  Finally, it looks from the start
  1562.    to the end of the line below the current cursor position.
  1563.  
  1564. 3. The fixed-keystroke option is used for a number of
  1565.    special-purpose applications.  For example, if a large number
  1566.    of addresses that you type are in a local area in which the
  1567.    first three zipcode digits are always the same, you may wish
  1568.    to define a hotkey with a fixed-keystroke sequence consisting
  1569.    of those three digits.  Or, if your data-entry scenario
  1570.    includes typing the zipcode twice (as a part of an ID number,
  1571.    then later as a part of the address), you may wish to define
  1572.    an option 1 (popup) hotkey for the first instance of the
  1573.    zipcode, then another, option 3 hotkey for the second
  1574.    instance, with a fixed-keystroke string of "{Enter} to repeat
  1575.    the zipcode.  Finally, you can use this option to make hotkeys
  1576.    to generate keystroke sequences having nothing to do with
  1577.    zipcodes.  To do this, you again use "{Enter} as the fixed
  1578.    input sequence, so that the ZIPKEY window doesn't pop up.
  1579.    Then you specify a playback sequence that doesn't use any of
  1580.    the zipcode entries -- I'll give an example at the end of this
  1581.    chapter.
  1582.  
  1583.                                                              3-10
  1584.  
  1585.    When you choose this option, ZIPKEY prompts you for the fixed
  1586.    keystroke sequence.  Remember, this is a sequence of keys that
  1587.    you could have typed if ZIPKEY's window had popped up.  Thus,
  1588.    it should follow ZIPKEY's popup syntax: either a sequence of
  1589.    digits for a zipcode, or a two-letter state code followed
  1590.    optionally by a (partial or complete) city name, or a
  1591.    question-mark followed by a city name, or the double-quotes
  1592.    mark " to repeat the last zipcode.
  1593.  
  1594.    Note that the Enter key can be included in the keystroke
  1595.    sequence.  Thus you must use another key to tell ZIPKEY right
  1596.    now that you've finished typing the keystroke sequence.  I
  1597.    have chosen the * character as the signal for this, as it
  1598.    isn't a part of ZIPKEY's popup syntax.
  1599.  
  1600.    A common mistake is to confuse this fixed keystroke sequence
  1601.    with the sequence of keys intended to be played back through
  1602.    your keyboard.  If, for example, you provide Bloomington, IN
  1603.    47401* here, ZIPKEY will pretend you had typed BLOO etc. when
  1604.    its window popped up. ZIPKEY is forgiving about BL not being a
  1605.    proper state code, and will switch to a city-only search for
  1606.    the string given.  However, the comma and all the follows will
  1607.    be part of the city name being searched, so the search will
  1608.    fail.  You should instead provide the simpler fixed sequence
  1609.    47401{Enter}* and give a playback sequence (described shortly)
  1610.    that causes the desired fixed city/state/zip combination.
  1611.  
  1612. 4. The last-keystrokes option is the only one you can use if you
  1613.    wish to type in zipcodes from within graphics programs such as
  1614.    Borland Reflex or Ventura Desktop Publisher.  ZIPKEY cannot
  1615.    pop up when your video display is in graphics mode; nor can it
  1616.    read the contents of the screen.  With this option, you type
  1617.    the zipcode first, before pressing the ZIPKEY hotkey.  ZIPKEY
  1618.    can replace the zipcode typed with the city/state/zip, without
  1619.    the window ever needing to pop up.  If the zipcode isn't
  1620.    already placed correctly when it is typed, you need to begin
  1621.    your playback sequence with bbbbb to wipe out the zipcode.
  1622.  
  1623. In the database management example, you'll choose option 1, to
  1624. pop up a window and wait for the operator to type in the zipcode.
  1625.  
  1626.  
  1627. Format of City/State/Zip Keystrokes
  1628.  
  1629. In normal ZIPKEY usage, after the zipcode has been specified and
  1630. the Enter key is typed to confirm the city found, ZIPKEY will
  1631. fool the computer into thinking a complete city/state/zip
  1632. combination has been typed.  You specify the format for this
  1633. combination now, during the specification of your hotkey.
  1634.  
  1635. The sequence usually consists of variable parts (city, state,
  1636. zip) that depend on the zipcode, combined with fixed parts: the
  1637. keystrokes that separate the variable parts, such as spaces,
  1638. punctuation marks, and positioning keys.  As you specify the
  1639. sequence, you type most of the fixed parts (spaces, commas,
  1640. Enter, Tab, arrow keys, etc.) just as you want them played back.
  1641. For each variable part, you substitute a letter (which you can
  1642. type in either upper- or lower-case) from the following list:
  1643.                                                              3-11
  1644.  
  1645. C  causes the name of the city to be generated.  ZIPKEY will
  1646.    abbreviate the name as necessary to fit it into a fixed-sized
  1647.    field.  When you type the C now at configuration time, a
  1648.    window pops up, prompting you to follow the C with the
  1649.    two-digit width you would like the city to fit into. You
  1650.    should type 99 if there is no limit.  A limit of 15 will give
  1651.    you reasonable results in all cases.  A limit less than 15
  1652.    will make some entries undecipherable and/or ambiguous.  A
  1653.    limit of 19 will cause all but a few cities not to be
  1654.    abbreviated at all.  The longest city name in the database is
  1655.    King and Queen Court House (Virginia), which has 26
  1656.    characters.
  1657.  
  1658.    If you type a limit less than 99, ZIPKEY will then ask you to
  1659.    specify whether the playback should follow the city name with
  1660.    a sequence of spaces (or right-arrows, or whatever) to fill
  1661.    out the fixed field.  Most database managers (including the
  1662.    one in our example) won't require this -- they let you type a
  1663.    single key, such as Enter or Tab, to advance to the next
  1664.    field. You would typically need this padding only if you are
  1665.    using a simple text editor to maintain a fixed-field database.
  1666.    If you need the padding, type F followed by the padding
  1667.    character (typically the space bar).  If you don't need the
  1668.    padding, type N and continue the playback sequence by
  1669.    providing the character needed (Enter, Tab, etc.) to advance
  1670.    beyond the city field.
  1671.  
  1672. A  causes the two-letter state abbreviation (in capital letters)
  1673.    to be generated.
  1674.  
  1675. Z  causes the five-digit zipcode to be generated.  There is one
  1676.    case -- a city search which returned multiple zipcodes in
  1677.    which the operator didn't complete the zipcode -- that 0's are
  1678.    provided to complete the zipcode.
  1679.  
  1680. T  causes the three-digit telephone area code to be generated.
  1681.  
  1682. In addition to the above commonly-used letters, ZIPKEY offers the
  1683. following letters for more special purposes:
  1684.  
  1685. B  causes a backspace to be generated.  This is on this list so
  1686.    you can use the backspace key right now to correct your
  1687.    configuration entry.  You will begin your playback sequence
  1688.    with B if the hotkey name was something like Z C, which causes
  1689.    one letter to escape to the application program.  You can also
  1690.    begin the playback sequence with BBBBB if you used option 2 or
  1691.    option 4 above to read a just-typed zipcode, and you wish to
  1692.    replace the zip with city/state/zip in the playback sequence.
  1693.                                                              3-12
  1694.  
  1695. L  causes the next character to be literalized -- that is, it is
  1696.    output as-is even though it might be on this list.  You can
  1697.    and should literalize all letters played back, just in case
  1698.    future versions of ZIPKEY add new letters to this list.  You
  1699.    can also literalize the * character to cause it to be played
  1700.    back instead of being interpreted as the terminator to this
  1701.    sequence.  For example, you may wish to embellish our
  1702.    word-processing example by appending LDLeLaLr followed by a
  1703.    space to the playback, causing "Dear " to be generated below
  1704.    the letterhead.
  1705.  
  1706. R  is used to retreat back across a variable-length city name.
  1707.    This would be used in a special case in which an address is
  1708.    being generated that might be indented on the page by an
  1709.    unknown amount.  Some text editors might require you to
  1710.    left-arrow back to the start of the name, then down-arrow to
  1711.    the next line to be aligned with the city-line.  You follow
  1712.    the R with the left-arrow key, or whatever other key you wish
  1713.    to be repeated by the length of the city name.
  1714.  
  1715. S  causes the full name of the state to be generated.  Most
  1716.    people will not use S, but instead use A to generate the
  1717.    two-letter abbreviation.
  1718.  
  1719. W  causes the computer to wait until the next 1/18th-second timer
  1720.    tick before generating the next keystroke.  This is an
  1721.    alternative to the keyboard slowdown option.  Some
  1722.    applications require an extra-slow playback at one particular
  1723.    point -- perhaps at the beginning, or at some point at which
  1724.    the program switches screens or accesses your disk. At those
  1725.    points, you may need to insert one or more W's into the
  1726.    playback sequence.
  1727.  
  1728. Just as with the fixed input specification, you can include the
  1729. Enter key as part of the sequence of keystrokes.  So you signal
  1730. ZIPKEY that the sequence is complete with the * character.
  1731.  
  1732. Returning to our database example, recall that the keystroke
  1733. sequence used for entering the city/state/zip/areacode
  1734. combination was
  1735.  
  1736. {Enter}C{Enter}AZ{Enter}T-
  1737.  
  1738. This is what you should type when ZIPKEY asks for the keystroke
  1739. playback sequence.  When you type C, ZIPKEY asks for the maximum
  1740. city width-- you should give the field width 17.  Then ZIPKEY
  1741. tells you to type F if you need padding, and N if you don't.  You
  1742. don't need padding, so you type N.  The complete specification
  1743. you type, including the terminating *, is
  1744.  
  1745. {Enter}C17N{Enter}AZ{Enter}T-*
  1746.                                                              3-13
  1747.  
  1748. Multiple Hotkeys
  1749.  
  1750. As a more advanced option, ZIPKEY allows you to define multiple
  1751. hotkeys.  (The limit is 99, which I hope is much more than anyone
  1752. will ever need.)  When you are setting up a new configuration
  1753. file, ZIPKEY will invite you to define another hotkey after the
  1754. first hotkey specification is complete.  You may also add hotkeys
  1755. at any point later in time, by selecting the appropriate option
  1756. in the configuration editing menu.
  1757.  
  1758. In our example, you answer Y to the invitation to define another
  1759. hotkey, and name the second hotkey F12.  You again choose zipcode
  1760. source option 1, to pop up the window and wait for keyboard
  1761. input.  The keystroke return sequence for word processing,
  1762. including the 99 for unlimited width and the terminating *, is
  1763.  
  1764. C99, A Z{Enter}{Enter}*
  1765.  
  1766.  
  1767. Exit Keys
  1768.  
  1769. Here is another option for more advanced users.  We've just seen
  1770. that one way to specify different keystroke playback sequences is
  1771. to define a different hotkey for each sequence.  Another way is
  1772. to define one or more alternate ZIPKEY exit keys.
  1773.  
  1774. The normal method for confirming a zipcode and initiating key
  1775. playback is the Enter key.  If you have defined an alternate exit
  1776. key, you can press that alternate key instead of Enter to confirm
  1777. a zipcode.  The keystroke playback sequence is associated with
  1778. the exit key, and so remains the same no matter what hotkey was
  1779. used to invoke ZIPKEY.
  1780.  
  1781. Since the function keys (F1, F2, etc.) have no other meaning at
  1782. the moment you are about to exit the ZIPKEY window, they are good
  1783. choices for alternate exit keys.  Let's consider our
  1784. database-and-word processing example.  Suppose you don't have a
  1785. new-generation keyboard with F11 and F12 keys, and you don't like
  1786. exotic keystroke combinations.  So you wish to define only one
  1787. hotkey, numeric 5.  You decide that most addresses will be typed
  1788. in through the database manager, so you specify the database
  1789. return sequence {Enter}C17N{Enter}AZ{Enter}T-* for the hotkey.
  1790. It will be played back whenever the Enter key is used to confirm
  1791. a zipcode.  For word processing, you define an alternate exit key
  1792. F1, and specify the word-processing sequence C99,  A
  1793. Z{Enter}{Enter}* as the playback sequence for F1.  Then, whenever
  1794. an address is being typed to the word processor, it is confirmed
  1795. with F1 instead of Enter, to get the alternate playback.
  1796.                                                              3-14
  1797.  
  1798. You can, of course, have both multiple hotkeys and alternate exit
  1799. keys. This would be desirable, for example, if you wanted to have
  1800. a number of different input combinations (e.g. popup a window
  1801. immediately, take the zipcode from the screen, and several
  1802. different fixed keystroke combinations for different localities),
  1803. combined with a number of different playback sequences.  You
  1804. would define a different hotkey for each input possibility, and
  1805. an alternate exit key for each playback sequence (except the most
  1806. commonly-used sequence, which you specify for every hotkey as the
  1807. sequence used when Enter is pressed to confirm an entry).
  1808.  
  1809. Another usage of exit keys is to handle exceptional cases of
  1810. address entry. Two examples come to mind.  First, you may wish to
  1811. define an exit key for cases in which ZIPKEY's city doesn't match
  1812. the city you wish to type. Alas, the existence of zipcodes
  1813. covering two cities makes this a possibility. You can define a
  1814. key sequence that fills in everything except the city, and leaves
  1815. your cursor at the city field ready for entry.  That way you're
  1816. still saving keystrokes having used ZIPKEY.  Second, you could
  1817. define an exit key that facilitates the entry of 9-digit (ZIP+4)
  1818. codes.  ZIPKEY doesn't have any information about 9-digit
  1819. zipcodes-- that database would occupy over 25 megabytes, even
  1820. with ZIPKEY's rate of compression.  But you can define an exit
  1821. key to handle 9-digit address entry, by specifying a key sequence
  1822. that outputs a hyphen after the zipcode, and leaves the cursor
  1823. positioned after that hyphen.  Then you can type the first 5
  1824. digits to ZIPKEY, and the final 4 digits after the window pops
  1825. away.  In the coming years, when 9-digit zips appear in the
  1826. majority of addresses, you can make this sequence the main hotkey
  1827. sequence, and the 5-digit case a special exit key sequence.
  1828.  
  1829.  
  1830. Configuration Editing Menu
  1831.  
  1832. After your configuration specification is complete, ZIPKEY goes
  1833. to the configuration editing menu.  This menu allows you to
  1834. display and/or modify the configuration choices you have made.
  1835. There are the general options (memory, intermediate results,
  1836. numlock, slow keyboard, and all the window settings), the hotkey
  1837. names, and the exit key names and playback sequences.  Again, the
  1838. default values for the general options are the values you chose
  1839. before -- if you wish to change just a single option, choose
  1840. "General options" and then just keep pressing Enter until that
  1841. setting comes up.
  1842.  
  1843. Option 6 of the configuration menu allows you to generate your
  1844. own quick reference card. I do not provide a printed
  1845. quick-reference card as a part of the ZIPKEY software package,
  1846. because much of the useful information contained on that card is
  1847. specific to your configuration.  Instead, this option prepares a
  1848. quick-reference document containing the configuration
  1849. information, that you can print out yourself.  The file is
  1850. written as ZIPKEY.ZQR (ZQR stands for Zipkey Quick Reference) on
  1851. your current disk directory.  You may wish to edit the document
  1852. for formatting before printing it; or you can simply type to the
  1853. DOS prompt the command COPY ZIPKEY.ZQR PRN.
  1854.                                                              3-15
  1855.  
  1856. Named Configuration Files
  1857.  
  1858. The final action in the configuration process is to save the ZC
  1859. (Zipkey Configuration) file to your disk, so that ZIPKEY can read
  1860. it every time you install ZIPKEY in memory.  If you will have
  1861. only one configuration, you should use the default file name,
  1862. ZIPKEY.ZC.
  1863.  
  1864. You may, however, wish to have different configurations, either
  1865. for different users or for different computing contexts.  In our
  1866. example, this would be a third way to provide a different
  1867. playback sequence for the database manager vs. word processor
  1868. case.  You could configure a single hotkey for the database, and
  1869. name its ZC file DATA.ZC.  Then you could make another
  1870. configuration, named WORD.ZC, with a single hotkey for the word
  1871. processor. Before entering the database manager, you always load
  1872. ZIPKEY using DATA.ZC; before entering the word processor, you
  1873. load ZIPKEY using WORD.ZC.
  1874.  
  1875. When ZIPKEY asks you for the name of the configuration file, you
  1876. do not need to type the file-name extension .ZC, but you can if
  1877. you want.  Any extension other than .ZC will be ignored, and .ZC
  1878. will be used.
  1879.  
  1880. The ZQR file produced by the quick reference document generation
  1881. option is always named after the ZC file.  For example, the ZQR
  1882. file for DATA.ZC is DATA.ZQR.
  1883.  
  1884.  
  1885. Modifying Configuration Files
  1886.  
  1887. You may modify a configuration file at any time, by selecting
  1888. option 3 from the main menu, or by invoking ZIPKEY 3 from the DOS
  1889. command prompt.  You may also include the name of the ZC file in
  1890. the DOS command prompt.  For example, ZIPKEY 3 DATA will cause
  1891. ZIPKEY to look for DATA.ZC. If the ZC file you wish to modify is
  1892. not found, ZIPKEY initiates a brand new configuration sequence,
  1893. but the first choice (Memory model) give you the option of
  1894. retyping the configuration file name in case you mistyped it.
  1895.  
  1896. The default choice in the configuration editing menu tells you if
  1897. you have made any modifications to the file.  If it is 8 (abort,
  1898. exiting without saving), you haven't modified the file.  If it is
  1899. 7 (disk save), you have.
  1900.  
  1901.  
  1902. More Hotkey Examples
  1903.  
  1904. Here are the complete configuration specifications for a few of
  1905. the scenarios mentioned earlier in this chapter.  To work the
  1906. examples in this section, type ZIPKEY 3, then either walk through
  1907. a configuration process until you get to the "Hotkey name"
  1908. prompt, or select option 3, "Hotkey settings", of the
  1909. configuration editing menu.
  1910.                                                              3-16
  1911.  
  1912. First, let's configure so that the zipcode comes from the screen,
  1913. and the ZIPKEY window doesn't pop up at all if the zipcode is
  1914. found.  When prompted for the hotkey name, press the back-quote
  1915. key.  Select option 2, "From the zipcode near the current cursor
  1916. position on the screen."  Then type N, you don't want the screen
  1917. to pop up for confirmation if the zipcode is found.  For the
  1918. playback sequence, we'll assume that you want to erase the
  1919. just-typed zipcode and replace it with a letterhead: type
  1920.  
  1921. BBBBBC99, A Z{Enter}
  1922.  
  1923. and terminate with the * key.
  1924.  
  1925. Because we used a displaying key (the backquote key) as the
  1926. hotkey in the previous example, let's define another hotkey that
  1927. generates a backquote.  When prompted for the hotkey name, type
  1928. Alt-backquote.  Select option 3, fixed string, for the zipcode
  1929. source.  ZIPKEY then asks for the fixed specification, and you
  1930. type the double-quotes key " followed by {Enter} and the
  1931. terminating * key.  Your keystroke playback sequence then has
  1932. nothing to do with zipcodes: it is simply the backquote key
  1933. followed by the terminating * key.  Now if you need to generate a
  1934. back-quote, you can type Alt-backquote.
  1935.  
  1936. Next, let's handle the case in which a zipcode is typed twice:
  1937. once as a part of an identification code, and then later as a
  1938. part of the address.  When prompted for the hotkey name, type the
  1939. Z and the 1 keys simultaneously.  For the zipcode source, choose
  1940. option 1, "The operator types it in after the window is popped
  1941. up."  Since you used two non-shifting keys, one of the keys will
  1942. have been fed to your application program: you now wipe it out by
  1943. beginning the playback sequence with B.  Since the city and state
  1944. name aren't part of the identification code, the playback is just
  1945. the backspace and the zipcode: BZ followed by the terminating *
  1946. key.  Next you specify a second hotkey, named with the Z and 2
  1947. keys.  Since you are repeating the zipcode just looked up for the
  1948. identification code, you specify option 3, fixed string, as the
  1949. zipcode source.  ZIPKEY then asks for the fixed specification,
  1950. and you again type the double-quotes key " followed by {Enter}
  1951. and the terminating * key.  Then you type the keystroke playback
  1952. sequence: C17N{Enter}AZ{Enter}T- followed by the terminating *
  1953. key.
  1954.  
  1955. Finally, let's do an example in which we provide a fixed field on
  1956. a simple text editor.  The city field will be 19 characters wide,
  1957. starting at column 33 on a line, which is the fourth tab stop.
  1958. It will be followed by the state abbreviation and the zipcode.
  1959. For the hotkey name, press both Shift keys, then press the Z key.
  1960. Choose option 1 as the zipcode source.  For the playback
  1961. sequence, we assume that the Home key will put the cursor at the
  1962. start of the current line, so you can specify
  1963.  
  1964.    {Home}{Tab}{Tab}{Tab}{Tab}C19F A Z*
  1965.  
  1966. which will leave the cursor just beyond the zipcode.
  1967.                                                              3-17
  1968.  
  1969. Conclusion
  1970.  
  1971. This concludes the description of ZIPKEY configuration.  In the
  1972. next chapter we'll discuss how to arrange the ZC file together
  1973. with the other ZIPKEY files, so that ZIPKEY is permanently
  1974. available to you.
  1975.  
  1976. As you have seen, ZIPKEY has a wide array of options.  There is
  1977. often more than one method of handling a given configuration
  1978. requirement.  Which method you choose is often simply a matter of
  1979. personal taste.  If you are intimidated by the choices, then keep
  1980. things simple to start out with.  Like any complex program,
  1981. ZIPKEY will serve you best if you let yourself become familiar
  1982. with it before trying to exploit every feature.
  1983.  
  1984. CHAPTER 4   RUNNING MEMORY-RESIDENT ZIPKEY
  1985.  
  1986.  
  1987. This chapter assumes you have some familiarity with DOS concepts
  1988. and commands-- for example, it assumes you know what a
  1989. subdirectory is, and how to copy a file to a subdirectory.  If
  1990. you aren't very familiar with DOS (you run straight to your
  1991. word-processor and stay there when you turn your computer on),
  1992. you may need to have a DOS-knowledgeable person assist you.
  1993.  
  1994.  
  1995. Installing ZIPKEY as a Memory-Resident Program
  1996.  
  1997. In Chapter 3 we discussed how to create a ZC file to configure
  1998. ZIPKEY to your specific needs.  Once you have done so, you are
  1999. ready to run ZIPKEY as a memory-resident program.  You do so by
  2000. selecting option 4 of the ZIPKEY main menu.  You can also do so
  2001. directly from the DOS command prompt, by issuing the command
  2002.  
  2003.       ZIPKEY 4
  2004.  
  2005. followed by the Enter key.  If you have a ZC file named something
  2006. other than ZIPKEY, you include the ZC file name on the command
  2007. line.  For example, if you have a ZC file named DATA, either of
  2008. the following command lines will load ZIPKEY as a memory resident
  2009. program, using the configuration file DATA.ZC:
  2010.  
  2011.    ZIPKEY 4 DATA
  2012.    ZIPKEY DATA 4
  2013.  
  2014. The process of loading ZIPKEY as a memory-resident program causes
  2015. your computer to exit the ZIPKEY program, and return you to the
  2016. DOS command prompt.  You are now ready to run any other programs
  2017. you choose, but ZIPKEY is still in your computer's memory, ready
  2018. to be activated at any time by the hotkey or hotkeys you chose
  2019. when you configured ZIPKEY as described in Chapter 3.
  2020.  
  2021. As an example, let's assume you have defined a ZC file with the
  2022. two hotkeys we discussed in Chapter 3: one, F11, for use within
  2023. your database manager, and the other, F12, for use within your
  2024. word processor.  Having loaded ZIPKEY as a memory-resident
  2025. program, you can now enter either your database manager or your
  2026. word processor to see if ZIPKEY works.  You reenter your database
  2027. manager, just as you did before you configured ZIPKEY, to type in
  2028. a sample address.  Just as before, the database manager puts an
  2029. address template onto the screen.  You type in a sample name and
  2030. street address; but instead of typing the Enter that will advance
  2031. you to the city field, you type the F11 hotkey instead.  The
  2032. ZIPKEY window pops onto the screen, inviting you to type a
  2033. zipcode specification.  (If it doesn't, see the section "ZIPKEY
  2034. and Other Memory-Resident Programs", later in this chapter.)  You
  2035. may type any specification as described in Chapter 2.
  2036.                                                               4-2
  2037.  
  2038. For most business applications, you will already have the zipcode
  2039. available to you, and you will be using ZIPKEY to make the data
  2040. entry faster and more accurate.  You type in a zipcode, 31625,
  2041. and get the city Barney, GA for confirmation.  You confirm with
  2042. the Enter key.  Now, if you defined your keystroke playback
  2043. sequence to duplicate what you would have typed to your database,
  2044. you should see the city, state, and zip fields of your address
  2045. template filled with the correct values.
  2046.  
  2047. What do you do if the template is not filled correctly?  You need
  2048. to determine if you got the keystroke playback sequence right.
  2049. If the city/state/zip appears to be there but is in the wrong
  2050. fields, then it's likely that you got your cursor-positioning
  2051. keys wrong -- either too many or not enough.  You should repeat
  2052. the exact keystroke sequence used to enter city/state/zip, and
  2053. make sure that is the sequence specified to ZIPKEY's
  2054. configuration.  You can get a listing of what you specified by
  2055. printing out the ZQR (Zipkey Quick Reference) file that you can
  2056. create via option 7 of the ZIPKEY configuration editing menu.
  2057. For example, if you created ZIPKEY.ZQR, type the command
  2058.  
  2059.    COPY ZIPKEY.ZQR PRN
  2060.  
  2061. to the DOS command prompt, and the listing will be sent to your
  2062. printer.
  2063.  
  2064. If ZIPKEY appears to be playing back only every second or third
  2065. letter of the city/state/zip, then your program needs the
  2066. keyboard slowdown option, one of the general option settings of
  2067. the configuration.
  2068.  
  2069. In any case, if a configuration change needs to be made, follow
  2070. the instructions in the next section to reinstall a new
  2071. configuration.
  2072.  
  2073. Having checked out the database manager, you need to move on to
  2074. the word processor.  You exit the database and invoke the word
  2075. processor.  You type a sample name and street address.  Instead
  2076. of typing a city name, you press the F12 key, and the ZIPKEY
  2077. window pops up once again.  Now type 23054 to get the entry Fife,
  2078. VA.  When you press the confirming Enter key, the complete
  2079. specification Fife, VA 23054 appears, the cursor is positioned at
  2080. the second line below.  Again, if you didn't get the right
  2081. results, you need to figure out whether you got the playback
  2082. sequence right.
  2083.  
  2084.  
  2085. Correcting Your Configuration
  2086.  
  2087. If your check-out of memory-resident ZIPKEY revealed some changes
  2088. you need to make in the configuration, you may do so by typing
  2089.  
  2090.    ZIPKEY 3
  2091.                                                               4-3
  2092.  
  2093. followed by the ZC file name if it isn't ZIPKEY, to the DOS
  2094. command prompt.  The choice "General options" followed by several
  2095. presses of the Enter key will get you to the "Slow down keyboard"
  2096. option, which you can change to Y if your program was missing
  2097. regularly-spaced keystrokes.  You may wish to temporarily slow
  2098. down the keyboard even if this wasn't the problem, so that you
  2099. can more easily watch the playback to diagnose how you got the
  2100. sequence wrong.
  2101.  
  2102. The option "Hotkey settings" will change the keystroke playback
  2103. sequence for a specific hotkey.  You need to repeat the
  2104. specification sequence, giving the hotkey name, zipcode source,
  2105. and the corrected playback sequence.
  2106.  
  2107. When you have made your changes, you can type Enter to the ZIPKEY
  2108. configuration menu, to execute default option 7, the disk save,
  2109. which puts you back to the ZIPKEY main menu.   Press Enter again
  2110. to execute default option 4, to re-install ZIPKEY as a
  2111. memory-resident program.
  2112.  
  2113.  
  2114. Uninstalling ZIPKEY
  2115.  
  2116. You may reverse the ZIPKEY 4 command with option 7 of the main
  2117. menu, which can be executed directly from DOS with the ZIPKEY 7
  2118. command.  This option removes ZIPKEY from memory.  If there have
  2119. been no other memory-resident programs installed after ZIPKEY,
  2120. the memory occupied by ZIPKEY is freed back for your other
  2121. programs to use.  In some systems, such as those running
  2122. Sidekick, a short stub of 200-300 bytes must be retained by
  2123. ZIPKEY after uninstallation.
  2124.  
  2125.  
  2126.  
  2127. Re-installing a New Configuration
  2128.  
  2129. In most cases, you do not need to uninstall ZIPKEY in order to
  2130. reinstall a new configuration.  You can simply repeat the command
  2131. to install ZIPKEY as a memory resident program-- either option 4
  2132. from ZIPKEY's main menu, or the DOS command ZIPKEY 4 followed by
  2133. the ZC file name if it isn't ZIPKEY. You may re-install after you
  2134. have modified the ZC file already installed, or you may reinstall
  2135. to change ZC files.  ZIPKEY will detect that it was already
  2136. installed, and simply substitute the new configuration.  You'll
  2137. be back at the DOS command prompt, ready to invoke ZIPKEY within
  2138. your programs again.
  2139.  
  2140. There are only two situations in which you need to execute ZIPKEY
  2141. 7 to change configurations:
  2142.  
  2143. 1. If you change the location of ZIPKEY's database -- EMS memory
  2144.    vs. stay-on-disk vs. main memory -- this one change will be
  2145.    ignored when ZIPKEY is re-installed, and not take effect until
  2146.    after ZIPKEY is uninstalled.
  2147.                                                               4-4
  2148.  
  2149. 2. If the new ZC file is more than 256 bytes bigger than the
  2150.    first ZC file installed, ZIPKEY will tell you that the new ZC
  2151.    file is too big, and the new installation will not take
  2152.    effect.  ZC files are usually much smaller than 256 bytes, so
  2153.    unless you have unusually complicated configurations, you
  2154.    won't have this problem.  If you do, you should make sure that
  2155.    your largest ZC file is loaded first when your computer starts
  2156.    up.
  2157.  
  2158.  
  2159. Making ZIPKEY Permanently Available
  2160.  
  2161. The MS-DOS operating system has a mechanism that allows you to
  2162. specify that certain programs should be run every time your
  2163. computer is started.  You create a file called AUTOEXEC.BAT, on
  2164. the same disk drive from which the operating system is loaded.
  2165. If you have a hard disk system, this is usually drive C.
  2166. AUTOEXEC.BAT is a text file, containing lines that you might type
  2167. to the DOS command prompt to run programs.  Every time your
  2168. computer is started, MS-DOS reads the AUTOEXEC.BAT file and
  2169. pretends that the first commands you typed into your computer are
  2170. the commands in that file.  You can place a line into
  2171. AUTOEXEC.BAT, containing the command to load ZIPKEY as a
  2172. memory-resident program.  For example, if your ZC file is named
  2173. ZIPKEY, you simply place the line
  2174.  
  2175.    ZIPKEY 4
  2176.  
  2177. into your AUTOEXEC.BAT file.  If the ZC file is named DATA, you
  2178. place
  2179.  
  2180.    ZIPKEY 4 DATA
  2181.  
  2182. into AUTOEXEC.BAT.  You'll need a text editor to modify
  2183. AUTOEXEC.BAT.  Your word processor might do the job, as long as
  2184. you make sure that no word-processing control characters are
  2185. inserted -- most word processors have a "plain text" mode for
  2186. this.
  2187.  
  2188.  
  2189. ZIPKEY and Other Memory-Resident Programs
  2190.  
  2191. If you have other memory-resident programs installed at the same
  2192. time as ZIPKEY, you may need to experiment a little to determine
  2193. the best order in which to load the programs.  Memory-resident
  2194. programming is extremely tricky, and the techniques are
  2195. non-standardized and poorly documented.  A resident program must
  2196. monitor all the keyboard's signals to the computer, while passing
  2197. those signals to all the other resident programs as well.  I
  2198. believe ZIPKEY does a good job of this, passing along every
  2199. keystroke received except for its own hotkeys.  But other
  2200. memory-resident programs may not do a good job: they may prevent
  2201. certain keystrokes from being seen by ZIPKEY, so that a ZIPKEY
  2202. hotkey won't pop up ZIPKEY's window.  They may even become
  2203. extremely confused and freeze up your computer when ZIPKEY is
  2204. invoked, forcing you to shut down and restart the computer.
  2205.                                                               4-5
  2206.  
  2207. A specific example: Borland's Sidekick (the program SK) insists
  2208. that you install it after other resident programs such as ZIPKEY,
  2209. and with good reason.  You can get away with running one program
  2210. after SK that monitors keystrokes directly, but if you run two
  2211. such programs, SK locks out the first program and usually locks
  2212. out your keyboard as well.  So if you run ZIPKEY after SK, and
  2213. then run a text editor such as BRIEF or XYWrite, your computer
  2214. locks up.  If you make sure ZIPKEY appears before SK in your
  2215. AUTOEXEC.BAT file, there is no such problem.
  2216.  
  2217. A reverse example: Borland's SUPERKEY program must be run before
  2218. ZIPKEY. If you run SUPERKEY after ZIPKEY, the last keystroke you
  2219. typed to ZIPKEY's pop-up window (typically Enter) will be seen by
  2220. your program as well.
  2221.  
  2222. If ZIPKEY works in its demonstration mode (ZIPKEY 2), but not in
  2223. memory-resident mode (ZIPKEY 4), you should try ZIPKEY with all
  2224. other memory-resident programs removed.  You do this by renaming
  2225. your AUTOEXEC.BAT file to something else. For example, if your
  2226. current directory contains AUTOEXEC.BAT, you can issue the
  2227. command
  2228.  
  2229.    REN AUTOEXEC.BAT AUTOEXEC
  2230.  
  2231. to temporarily remove the .BAT extension from the file.  Then
  2232. shut down and restart your computer.  When the computer is
  2233. restarted, install ZIPKEY as a memory-resident program, and try
  2234. to invoke it with a hotkey.  If ZIPKEY now works, you know that
  2235. some other memory-resident program is interacting poorly with
  2236. ZIPKEY.  You can invoke the other memory-resident programs one at
  2237. a time, trying ZIPKEY after each one, to find the culprit. It's
  2238. possible that they will all load successfully and ZIPKEY will
  2239. still work -- in that case, you simply place the ZIPKEY
  2240. invocation at the start of the AUTOEXEC.BAT file, so it is loaded
  2241. first.
  2242.  
  2243. When you have sorted things out, don't forget to rename your
  2244. AUTOEXEC file back to AUTOEXEC.BAT.
  2245.  
  2246.  
  2247. Finding ZIPKEY Files on Your Disk
  2248.  
  2249. When you set up ZIPKEY to be permanently available, you need to
  2250. make sure that the ZIPKEY files are placed on your disk where
  2251. they can be found.  This section describes how to do so.
  2252.  
  2253. Normally, when you give the name of a disk file to your computer,
  2254. you must let the computer know where it can find the file.  If
  2255. the file is on a floppy drive, you give the letter of the drive;
  2256. for example, A:ZIPKEY.OVL.  If the file is on a hard disk drive,
  2257. you might also need to name a subdirectory on the drive; for
  2258. example, C:\DOS\ZIPKEY.OVL.  To reduce this burden, DOS maintains
  2259. a "current drive" and "current directory", which act as the
  2260. defaults if you don't give a drive letter or subdirectory.  For
  2261. example, the commands
  2262.                                                               4-6
  2263.  
  2264.     C:
  2265.     CD \DOS
  2266.  
  2267. make C the current drive and \DOS the current directory, so you
  2268. can refer to ZIPKEY.OVL instead of C:\DOS\ZIPKEY.OVL.
  2269.  
  2270. DOS's command processor adds an additional embellishment to the
  2271. current-drive-and-directory concept.  When you issue a command
  2272. such as ZIPKEY to DOS, it will look for the program file
  2273. ZIPKEY.COM first in the current directory.  If it doesn't find
  2274. ZIPKEY.COM there, it can be instructed to look in other default
  2275. directories, until ZIPKEY.COM is found.  You specify the list of
  2276. other default directories by the PATH (or SET PATH=) command,
  2277. placed into your AUTOEXEC.BAT file.  For example, your
  2278. AUTOEXEC.BAT file might contain the line
  2279.  
  2280.     PATH C:\DOS;C:\WP
  2281.  
  2282. or the equivalent line
  2283.  
  2284.     SET PATH=C:\DOS;C:\WP
  2285.  
  2286. to specify that programs may be found in the directories C:\DOS
  2287. and C:\WP as well as the current directory.
  2288.  
  2289. For convenience, ZIPKEY also recognizes the PATH command to find
  2290. its auxiliary files: ZIPKEY.OVL and the ZC file.  For example, if
  2291. your AUTOEXEC.BAT does contain the previously-mentioned PATH
  2292. specification, you may place ZIPKEY.COM, ZIPKEY.OVL, and your ZC
  2293. files into the C:\DOS subdirectory.  Just make sure that the PATH
  2294. command in your AUTOEXEC.BAT comes before your ZIPKEY command.
  2295. Then you won't have to worry about what the current directory is
  2296. when ZIPKEY is invoked.
  2297.  
  2298. Alternatively, if you want to keep ZIPKEY by itself on your disk,
  2299. you can either add ZIPKEY's subdirectory to the PATH command, or
  2300. make ZIPKEY's directory the current directory at the time ZIPKEY
  2301. is invoked, with a sequence such as
  2302.  
  2303.    CD \ZIPKEY
  2304.    ZIPKEY 4
  2305.    CD \
  2306.  
  2307. which makes \ZIPKEY the current directory, invokes ZIPKEY, and
  2308. then restores the root directory \ as the current directory.
  2309. \ZIPKEY should be a subdirectory that contains all the files
  2310. \ZIPKEY\ZIPKEY.COM, \ZIPKEY\ZIPKEY.OVL, and \ZIPKEY\*.ZC.
  2311.  
  2312. Note that you must change the current directory if the ZIPKEY
  2313. files are not in a PATH directory.  You cannot replace sequence
  2314. in the previous paragraph to
  2315.  
  2316.    ZIPKEY\ZIPKEY 4
  2317.  
  2318. because ZIPKEY won't be able to find its ZIPKEY.OVL or ZC file.
  2319.                                                               4-7
  2320.  
  2321. The only crucial factor here is the file-finding situation at the
  2322. time ZIPKEY is installed (the ZIPKEY 4 command).  After that, you
  2323. may change the current drive and/or directory to anything you
  2324. want, and ZIPKEY will always find the files it needs.  The only
  2325. exception: if you run ZIPKEY from a floppy disk and you have
  2326. configured ZIPKEY to take its data from the disk, you cannot
  2327. remove the disk containing ZIPKEY.OVL-- it must still be there so
  2328. ZIPKEY can read it.
  2329.  
  2330. When deciding whether to place ZIPKEY into a PATH directory, you
  2331. may wish to consider the ease with which you would like ZIPKEY to
  2332. be invoked for modifying and reloading configurations.  With
  2333. ZIPKEY in a PATH directory, it can be invoked at any time without
  2334. changing the current directory.  If you modify an existing ZC
  2335. file, ZIPKEY will find and rewrite the file wherever it is.  (New
  2336. ZC files are always written to the current directory.)  This is a
  2337. powerful and convenient feature.  On the other hand, if you have
  2338. untutored users on your computer for which you consider such
  2339. power too dangerous, you may deliberately place ZIPKEY in a
  2340. non-PATH directory, to make careless modifications a little more
  2341. difficult.
  2342.  
  2343.  
  2344. Installing Files on a Network
  2345.  
  2346. If you set up your system so that ZIPKEY.OVL is accessed over a
  2347. network, there is an additional optimization you can make: after
  2348. copying ZIPKEY.OVL to its permanent location, you can execute the
  2349. DOS command
  2350.  
  2351.    ATTRIB +R ZIPKEY.OVL
  2352.  
  2353. which makes ZIPKEY.OVL a read-only file.  This allows your
  2354. computer to buffer data without worrying about whether another
  2355. computer has changed the file.  The result is that access is
  2356. speeded up when the same disk sector is read consecutive times.
  2357.  
  2358. CHAPTER 5   GENERATING AN ORDER FORM
  2359.  
  2360.  
  2361. Automatic Order-Form Generation
  2362.  
  2363. Because ZIPKEY is widely available on an evaluation basis, I felt
  2364. it necessary to make it easy for people to realize that ZIPKEY
  2365. isn't free.  So ZIPKEY has a special option 5 on its main menu to
  2366. generate an order for based on your usage, disk requirements, and
  2367. method of payment.  You may also execute this option directly
  2368. from the DOS command prompt, by issuing the command
  2369.  
  2370.    ZIPKEY 5
  2371.  
  2372. followed by the Enter key.  You'll also be invited to generate an
  2373. order form when installing ZIPKEY in memory (using the ZIPKEY 4
  2374. command), in two circumstances:
  2375.  
  2376. 1. If your data is 13 or more months old, you'll be warned that
  2377.    it's out of date.  The postal service regularly makes changes
  2378.    to its zipcodes, so that you need fresh data to insure
  2379.    continued accuracy.  I'll be releasing new ZIPKEY.OVL files
  2380.    based on those changes monthly.  You are required to
  2381.    resubscribe and receive a new disk at least once a year; and
  2382.    you can elect to receive disks more often if you wish.
  2383.  
  2384. 2. If you are running the evaluation version of ZIPKEY, and it is
  2385.    now the second month or later following the first creation of
  2386.    your ZC file, you'll be reminded that your evaluation period
  2387.    has expired, and invited to fill out an order form.
  2388.  
  2389. In either case, if you choose Y to the order-form invitation, you
  2390. will initiate the interactive session described in this chapter,
  2391. after which ZIPKEY will install itself as intended, and
  2392. AUTOEXEC.BAT (if that's where ZIPKEY was invoked from) will
  2393. complete itself.
  2394.  
  2395. If you press N to the invitation, the order-form procedure is
  2396. skipped, and the computer continues normally, installing ZIPKEY
  2397. which will work just fine.  I'm not going to beat you over the
  2398. head with a club; I'm trusting that you'll answer Y eventually.
  2399.  
  2400.  
  2401. ZIPKEY's Schedule of Prices
  2402.  
  2403. The pricing scheme for ZIPKEY is a little unusual in that it
  2404. involves the maximum, not the sum, of two fees.  The basic,
  2405. single-keyboard registration is $30, which buys you a printed
  2406. manual, a disk, and a year's license to run ZIPKEY in
  2407. memory-resident mode.  I felt that if you want disks more often
  2408. than once a year, you should pay more.  And if you wanted to
  2409. license more keyboards you should pay more.  But I also felt that
  2410. if you chose either price-increasing option, you should
  2411. automatically be entitled to the other at no extra cost.  I can't
  2412. explain it beyond that-- it's simply what seems fair to me.
  2413. Hopefully I can implement this scheme without too much confusion,
  2414. thanks to ZIPKEY's ability to figure out your subscription price
  2415. for you.
  2416.                                                               5-2
  2417.  
  2418. So your subscription fee is the greater of two qualifying
  2419. amounts: the materials fee and the license fee.
  2420.  
  2421. The materials fee is $25 for every diskette mailed to you, plus
  2422. $5 for every printed manual mailed to you.  You may copy the
  2423. contents of a single disk onto all computer systems for which you
  2424. have licensed ZIPKEY, so you do not need to order multiple copies
  2425. of the same diskette.
  2426.  
  2427. The license fee depends on the number of keyboards accessing
  2428. ZIPKEY.  Keyboards using ZIPKEY only in its demonstration mode
  2429. (ZIPKEY 2) have a one-time, perpetual license fee fee of $10.
  2430. Keyboards using ZIPKEY as a memory-resident program (hotkeys, key
  2431. playback, and/or program interface) have a sliding scale of
  2432. annual fees: $25 for the first keyboard, $20 each for the second
  2433. and third keyboards, $15 each for the next five keyboards, and
  2434. $10 each for all subsequent keyboards.
  2435.  
  2436. Again, the total charge is the maximum, NOT the sum, of the
  2437. materials and license fees.  This means, for example, that if you
  2438. would like to receive disks quarterly (materials fee $100), you
  2439. may license 5 memory-resident keyboards (license fee $95) for no
  2440. extra charge.  Conversely, if you license a lot of keyboards, you
  2441. may be able to receive disks more often for no extra charge.
  2442.  
  2443.  
  2444. Gathering Your Order Information
  2445.  
  2446. Before answering ZIPKEY's order form questions, you should take a
  2447. census of the number of keyboards you wish to license.  (I refer
  2448. to keyboards, not computers, to resolve questions raised by
  2449. networks.)  The non-resident keyboards are those from which
  2450. ZIPKEY is accessible, and from which occasional ZIPKEY 2 commands
  2451. are issued to look up zipcodes in demonstration mode, but which
  2452. the ZIPKEY 4 command is never issued.  The resident keyboards are
  2453. those for which ZIPKEY 4 is used, to install ZIPKEY in memory,
  2454. and use any or all of the following: hotkeys, keystroke playback,
  2455. or the programmatic interface.  If you use the programmatic
  2456. interface to produce an unpacked zipcode database file from
  2457. ZIPKEY.OVL, then you must also license any keyboards that access
  2458. that database file, even if they don't run ZIPKEY directly.
  2459.  
  2460. You should also decide how you will pay for your order, by
  2461. obtaining either a purchase order number or a credit card number
  2462. (Visa, Mastercard, or American Express), or by seeing to it that
  2463. you can obtain a prepaid check.  Keep in mind that you must be
  2464. either an established customer, a Fortune 1000 corporation, an
  2465. accredited school, or a government agency to issue a non-prepaid
  2466. purchase order.  Also, there is a $5 surcharge for non-prepaid
  2467. purchase orders under $100.
  2468.                                                               5-3
  2469.  
  2470. Answering the Order-Form Questionnaire
  2471.  
  2472. Now you're ready to answer the order-form questionnaire.  You'll
  2473. first be asked the number of non-resident, then resident
  2474. keyboards you are licensing. If this is a simple, one-keyboard
  2475. registration, you'll answer 1 for one of them and 0 for the
  2476. other.  If you are renewing a license, you don't need to
  2477. redeclare the non-resident keyboards-- their license is
  2478. permanent.  You do need to redeclare the resident keyboards.
  2479.  
  2480. What about keyboards that change resident vs. non-resident
  2481. status?  You declare the newly resident keyboards, and not the
  2482. newly non-resident ones.
  2483.  
  2484. Next, ZIPKEY asks for the number of printed manuals you'd like.
  2485. You may order any number from zero up to the number of keyboards
  2486. being licensed.
  2487.  
  2488. Next, ZIPKEY asks for the number of years you are paying for.  I
  2489. expect almost everyone to answer 1 to this question; but I myself
  2490. like to pay off my utilities bills for months in advance, so
  2491. maybe somebody out there will be like that.
  2492.  
  2493. ZIPKEY then asks for the number of disks per year to be
  2494. delivered.  This number multiplied by the previous number gives
  2495. the total number of disks you are paying for with this order.
  2496. You'll get one disk immediately, and the rest in evenly-spaced
  2497. periods.  The disk to be shipped exactly one year from now is
  2498. part of next year's order.
  2499.  
  2500. You are then give a choice of disk type.  Choice 1 is the
  2501. older-generation, 360K flexible-sleeve floppy.  Choice 2 is the
  2502. newer (PS/2 style) hard-shell, 720K disk.
  2503.  
  2504. You are then prompted for your name, address, and telephone
  2505. number, followed by the choices for method of payment.  If you
  2506. choose a credit card or purchase order number, you'll be prompted
  2507. for the additional information.
  2508.  
  2509. After the payment information is given, the order form is
  2510. complete.  The only remaining choice is whether to send the form
  2511. directly to the printer, or to a disk file or device.  Make sure
  2512. your printer is turned on before sending it to the printer.
  2513.  
  2514.  
  2515. Possible Amendments to the Total Price
  2516.  
  2517. The order form that ZIPKEY outputs includes the total price of
  2518. the package calculated for you.  There are only two things that
  2519. could add to the total:
  2520.  
  2521. 1. If your shipping address is in Indiana and you are not exempt,
  2522.    you must add sales tax (5% at this writing) to the total.
  2523.  
  2524. 2. If your shipping address is overseas, add $2 per disk and $3
  2525.    per manual to cover extra postage.  There is no extra charge
  2526.    for postage on domestic orders.
  2527.  
  2528. CHAPTER 6   PROGRAMMATIC INTERFACE
  2529.  
  2530.  
  2531. If you are writing a computer program and wish to call ZIPKEY
  2532. from your program, you may do so.  The complete descriptions of
  2533. the function calls, with sample calling code, is given in the
  2534. file ZPROG.DOC on your disk.  The following chart gives the
  2535. overview of calls to ZIPKEY's INT 179 (hex B3), as a quick
  2536. reference when you are writing your code:
  2537.  
  2538. INT 179 with AH=
  2539.  
  2540. 070H   ZK_VERSION sets AX,CL,DX to version information
  2541. 071H   ZK_ABBR_ST converts abbr. BX to state code AL
  2542. 072H   ZK_ST_ABBR converts state code AL to abbr. BX
  2543. 073H   ZK_ST_NAME outputs state BL's name to ES:DI
  2544. 074H   ZK_ZIP_DIGITS outputs zipcode DXCH to ES:DI
  2545. 075H   ZK_ZIP_ST sets AL=state BX=area code for zipcode DXCH
  2546. 076H   ZK_ZIP_CITY outputs city name DXCH to ES:DI
  2547. 077H   ZK_ZIP_KEYS plays exit key #BX for zipcode DXCH
  2548. 078H   ZK_STCITY_ZIP sets BH to #cities DS:SI for state BL
  2549. 079H   ..or ZK_CITY_ZIP for any state starting with BL
  2550. 07AH   ..then ZK_CASE_ZIP sets DXCL-CH to case #BL
  2551. 07BH   ZK_SAVE sets BX,CX,DX to ZIPKEY's context; BL=city width
  2552. 07CH   ..then ZK_RESTORE restores ZIPKEY's context
  2553. 07DH   ZK_POPUP pops up as if hotkey #BL were pressed
  2554. 07EH   ZK_REGION_CITY outputs region DX to ES:DI; sets AL=state
  2555. 07FH   ZK_SWITCH BL=0/1/2/3 en/dis/show/togg hotkeys; 6=newprog
  2556. 080H   ZK_AREA_ST converts area code BX to state AL, 1st region DX
  2557.  
  2558. If Carry is returned, then if AL=
  2559.  
  2560.    0FDH  ZIPKEY is busy.
  2561.    0FEH  Illegal AH function number.
  2562.    0FFH  Search failed without even a suggested value.
  2563.  
  2564. INDEX                                                  7-1
  2565. A-specifier for playback, 3-11
  2566. Aaron, AL, 2-9
  2567. abbreviating a city name, 3-11
  2568. abbreviation, 2-letter, playback, 3-11
  2569. abbreviations in database, 2-8
  2570. abbreviations, state, finding, 2-5
  2571. aborting a search (Esc), 2-1
  2572. about the author, 1-8
  2573. AboveBoard, 3-3
  2574. address, my, 1-9
  2575. aligning to a city name, 3-12
  2576. Alt key in hotkeys, 3-7
  2577. Alt-backquote hotkey example, 3-15
  2578. alternate exit keys, 3-13
  2579. alternate hotkeys, 3-12
  2580. alternate window, 3-5
  2581. amendments to total price, 5-3
  2582. answering the order-form questionnaire, 5-3
  2583. ARC files, 1-8
  2584. area code playback, 3-11
  2585. area code search, 2-8
  2586. area code sources, 1-6
  2587. arrow keys during configuration, 3-5
  2588. arrow keys during state/city search, 2-7
  2589. arrow keys during zipcode search, 2-4
  2590. ASP Ombudsman, 1-9
  2591. asterisk during fixed key entry, 3-10
  2592. asterisk, literal playback, 3-12
  2593. atlas sources, 1-6
  2594. ATTRIB command, use with networks, 4-7
  2595. author, contacting, 1-9
  2596. AUTOEXEC.BAT file, 4-4
  2597. automatic ZIPKEY installation, 4-4
  2598. availability, permanent, 4-4
  2599. B-specifier for playback, 3-11
  2600. back-quote hotkey, 3-7
  2601. backing up your data, 1-4
  2602. backquote hotkey example, 3-15
  2603. backspace and escaped hotkey code, 3-7
  2604. backspace generation on playback, 3-11
  2605. Barney, GA example, 4-2
  2606. BBS distribution, 1-8
  2607. big cities, zipcodes for, 2-6
  2608. biography, 1-8
  2609. blank-padding example , 3-16
  2610. blank-padding of city name, 3-11
  2611. Borland Reflex, 3-10
  2612. Borland TSRs, 4-5
  2613. Borland, 3-5
  2614. bugs, reporting, 1-9
  2615. bulletin boards, my, 1-9
  2616. buying a copy of ZIPKEY, 5-1
  2617. C-specifier for playback, 3-11
  2618. calling ZIPKEY from programs, 6-1
  2619. cancelling a window (Esc), 2-1
  2620. capacity of cities display, 2-5
  2621. case sensitivity, 2-5
  2622.                                                        7-2
  2623. charges for ZIPKEY, 5-1
  2624. cities display capacity, 2-5
  2625. cities, guessed, 2-3
  2626. cities, large, zipcodes for, 2-6
  2627. cities, listing, 2-3
  2628. city name in playback, 3-11
  2629. city name, abbreviating, 3-11
  2630. city name, changing from ZIPKEY's, 3-14
  2631. city name, longest in database, 3-11
  2632. city only search, 2-7
  2633. city-only failed find, 2-7
  2634. city/state/zip format, 3-10
  2635. club, beat over the head with, 5-1
  2636. color of window, 3-5
  2637. color vs. monochrome video modes, 3-6
  2638. COM vs. EXE file, 1-7
  2639. compilation copyright, 1-6
  2640. completing a zipcode, 2-6
  2641. conditions for distribution, 1-5
  2642. Condor compatibility, 3-4
  2643. configuration editing menu, 3-14
  2644. configuration, creating, 3-2
  2645. configuration, large, 4-4
  2646. configurations, re-installing, 4-3
  2647. configuring ZIPKEY, 3-1
  2648. contacting me, 1-9
  2649. contents, 0-2
  2650. copyright of database, 1-6
  2651. correcting hotkeys, 4-3
  2652. correcting keyboard slowdown, 4-3
  2653. correcting your configuration, 4-2
  2654. Ctrl key in hotkeys, 3-7
  2655. current drive and directory, 4-5
  2656. cursor during next-state search, 2-7
  2657. customizing ZIPKEY, 3-1
  2658. data source, changing, 4-3
  2659. data, possible sources of, 3-3
  2660. database example, playback, 3-12
  2661. database manager example, 3-1
  2662. database, sources and copyright, 1-6
  2663. Dear example, 3-12
  2664. default options during configuration, 3-2
  2665. demonstration mode, 2-1
  2666. Desqview awareness, 3-3
  2667. determining needs, 3-1
  2668. differences, evaluation vs. registered, 1-7
  2669. directories, sources, 1-6
  2670. disabling other resident programs, 4-5
  2671. disk storage of zipcodes, 3-3
  2672. diskettes, charge for, 5-2
  2673. disks, 3.5" vs. 5.25", 5-3
  2674. disks, number ordered, 5-3
  2675. display of hotkey name, wrong, 3-8
  2676. display of intermediate results, 3-4
  2677. distribution conditions, 1-5
  2678. distribution houses, shareware, 0-1
  2679. distribution naming conventions, 1-7
  2680.                                                        7-3
  2681. down-arrow during city search, 2-7
  2682. down-arrow during zipcode search, 2-4
  2683. East, unabbreviation, 2-8
  2684. editing menu, configuration, 3-14
  2685. electronic mail, 1-9
  2686. EMS memory, 3-3
  2687. EMS mode, problems with, 3-3
  2688. Enter key during configuration choices, 3-2
  2689. Enter key during fixed key entry, 3-10
  2690. Enter key during playback specification, 3-12
  2691. Enter key in demonstration mode, 2-1
  2692. error codes, ZIPKEY program, 6-1
  2693. errors on city name, coping with, 3-14
  2694. escaping from a window, 2-1
  2695. evaluation copy of ZIPKEY, 1-3
  2696. evaluation period, length of, 1-4
  2697. evaluation vs. registered differences, 1-7
  2698. EXE vs. COM file, 1-7
  2699. existing zipcode, looking up, 3-8
  2700. exit keys, alternate, 3-13
  2701. expiration of evaluation, 5-1
  2702. expiration of subscription, 5-1
  2703. exploration keys, 2-4
  2704. F-specifier example , 3-16
  2705. F-specifier following city width, 3-11
  2706. F11 and F12 as hotkeys, 3-7
  2707. fees for using ZIPKEY, 5-1
  2708. Fife, VA example, 4-2
  2709. files, how ZIPKEY finds, 4-5
  2710. finding a city only, 2-7
  2711. finding state abbreviations, 2-5
  2712. finding state/city, 2-5
  2713. finding zipcodes, 2-2
  2714. finding ZIPKEY files on your disk, 4-5
  2715. fixed field example, 3-16
  2716. fixed zipcode, 3-9
  2717. fixed-keystroke source for hotkey, 3-9
  2718. format of city/state/zip playback, 3-10
  2719. Fort, unabbreviation, 2-8
  2720. frequency of disk updates, 5-3
  2721. full name of state, playback, 3-12
  2722. function keys during configuration, 3-5
  2723. function keys, exiting ZIPKEY with, 3-13
  2724. gathering order information, 5-2
  2725. general option settings, definition, 3-6
  2726. generating an order form, 5-1
  2727. graphics mode usage, 3-10
  2728. guessed cities, 2-3
  2729. Home key, 2-1
  2730. hotkey configuration, 3-6
  2731. hotkey echoing, wrong display, 3-8
  2732. hotkey name, 3-6
  2733. hotkey, definition, 1-2
  2734. hotkeys, more than one, 3-12
  2735. how to contact me, 1-9
  2736. how to create a ZC file, 3-2
  2737. how to order, 5-1
  2738.                                                        7-4
  2739. incompatible programs with ZIPKEY, 1-3
  2740. indented addresses, 3-12
  2741. installing files on a network, 4-7
  2742. Intel, 1-8
  2743. Intel, 3-3
  2744. interfacing your programs to ZIPKEY, 6-1
  2745. interference of other programs, 4-4
  2746. intermediate results for zipcode, 2-2
  2747. intermediate results, city-only, 2-7
  2748. intermediate results, suppressing, 3-4
  2749. interrupt, ZIPKEY, 6-1
  2750. invoice, generating, 5-1
  2751. Jeffersonville example, 2-3
  2752. key slowdown via W, 3-12
  2753. keyboard interference, 4-4
  2754. keyboard slowdown, 3-4
  2755. keyboards, licensing, 5-2
  2756. keystroke playback sequence, 3-10
  2757. keystrokes, determining, 3-1
  2758. King and Queen Court House, VA, 3-11
  2759. L-specifier for playback, 3-12
  2760. large cities, zipcodes for, 2-6
  2761. large configuration, changing to, 4-4
  2762. last-keystrokes source for hotkey, 3-10
  2763. Left vs. Right keys, 3-7
  2764. legal conditions for distribution, 1-5
  2765. legal terms, 1-3
  2766. length of city name, specifying, 3-11
  2767. length of subscription, 5-3
  2768. letters, fixed playback, 3-12
  2769. liabilities, 1-4
  2770. license length, 1-4
  2771. license, how to obtain, 5-1
  2772. LIM-EMS memory, 3-3
  2773. limitations, 1-3
  2774. listing cities, 2-3
  2775. listing regions, 2-2
  2776. literalizing during playback, 3-12
  2777. local zipcode option, 3-9
  2778. location of window, 3-5
  2779. longest city name in database, 3-11
  2780. looking up a city only, 2-7
  2781. looking up a zipcode, 2-1
  2782. looking up state abbreviations, 2-5
  2783. looking up state/city, 2-5
  2784. looking up zipcodes, 2-2
  2785. Lotus-Intel-Microsoft memory, 3-3
  2786. Louisville example, 2-3
  2787. lower vs. upper sensitivity, 2-5
  2788. mail, electronic, 1-9
  2789. main city of a region, 2-3
  2790. main memory for zip data, 3-3
  2791. main memory mode, problems with, 3-3
  2792. main menu option 2, 2-1
  2793. main menu option 3, 3-2
  2794. main menu option 4, 4-1
  2795. main menu option 5, 5-1
  2796.                                                        7-5
  2797. main menu option 7, 4-3
  2798. making ZIPKEY permanently available, 4-4
  2799. manual, overview, 1-1
  2800. manuals, charge for, 5-2
  2801. materials fee, 5-2
  2802. maximum city name size, 3-11
  2803. memory model, 3-3
  2804. memory model, changing, 4-3
  2805. memory requirements, 1-3
  2806. memory-resident mode, definition, 1-2
  2807. memory-resident mode, running, 4-1
  2808. memory-resident programs, other, 4-4
  2809. memory-resident use, configuring, 3-2
  2810. Microsoft Word 4.0 problem, 1-3
  2811. Microsoft Works, 1-3
  2812. Microsoft, 3-3
  2813. might-be cities, 2-3
  2814. missing characters, correcting, 3-4
  2815. missing playback keys, 4-2
  2816. modifications, see if you made, 3-15
  2817. modifying configuration files, 3-15
  2818. money, how to send, 5-1
  2819. monochrome vs. color video modes, 3-6
  2820. more hotkey examples, 3-15
  2821. Mount, unabbreviation, 2-8
  2822. moving from state to state, 2-7
  2823. multiple configuration files, 3-14
  2824. multiple hotkeys, 3-12
  2825. multiple-zipcode cities, 2-6
  2826. N-specifier following city width, 3-11
  2827. name of hotkey, wrong display, 3-8
  2828. named configuration files, 3-14
  2829. naming conventions for distribution, 1-7
  2830. National Park abbreviation, 2-8
  2831. networks, optimizing for, 4-7
  2832. nine-digit zipcodes, entering, 3-14
  2833. Nome example, 2-7
  2834. North, unabbreviation, 2-8
  2835. num 5 hotkey, 3-4
  2836. numlock on option, 3-4
  2837. Ombudsman, ASP, 1-9
  2838. operating requirements, 1-3
  2839. order form invitation, 1-7
  2840. order form, generating, 5-1
  2841. other memory-resident programs, 4-4
  2842. overseas 011 area code, 2-8
  2843. overseas postage, 5-3
  2844. overview of manual, 1-1
  2845. overview of ZIPKEY, 1-2
  2846. OVL file, how ZIPKEY finds, 4-6
  2847. OVL too new, 1-7
  2848. padding example, 3-16
  2849. padding of a city name, 3-11
  2850. paging keys, cities search, 2-5
  2851. paging keys, zipcode search, 2-4
  2852. PATH command, 4-6
  2853. PATH directory, putting ZIPKEY in, 4-7
  2854.                                                        7-6
  2855. payment for ZIPKEY, 5-1
  2856. permanent installation, 4-4
  2857. PgDn/PgUp in cities search, 2-5
  2858. PgDn/PgUp keys, zipcode search, 2-4
  2859. phone numbers of bulletin boards, 1-9
  2860. playback keys, missing, 4-2
  2861. playback of keystrokes, specifying, 3-10
  2862. playback unrelated to zipcodes, 3-15
  2863. pop-up window option for hotkey, 3-8
  2864. postage, adding overseas, 5-3
  2865. price notification policy, 1-4
  2866. price, amendments to, 5-3
  2867. prices, schedule of, 5-1
  2868. printed manuals, charge for, 5-2
  2869. printout of configuration (ZQR), 3-14
  2870. problems with main not disk mode, 3-3
  2871. programmatic interface, 6-1
  2872. prohibitions, specific, 1-5
  2873. Prokey 2.1 incompatibility, 1-3
  2874. ProKey, 3-5
  2875. publishing database, don't, 1-7
  2876. purchase orders, qualifying for, 5-2
  2877. question mark, 2-7
  2878. questionnaire, order-form, 5-3
  2879. quick-reference document, 3-14
  2880. quitting a search (Esc), 2-1
  2881. quotes mark at signon window, 2-9
  2882. R-specifier for playback, 3-12
  2883. ranges of zipcodes, 2-6
  2884. re-installing ZIPKEY, 4-3
  2885. read-only attribute, setting, 4-7
  2886. reference guide, definition, 1-1
  2887. references for database, 1-6
  2888. Reflex, Borland, 3-10
  2889. regions, definition of, 2-3
  2890. regions, listing, 2-2
  2891. registered copy of ZIPKEY, 1-3
  2892. registering, how to, 5-1
  2893. release date, 0-1
  2894. removing ZIPKEY from memory, 4-3
  2895. repeat last zipcode, 2-9
  2896. repeat zipcode, example, 3-15
  2897. repeat-zipcode hotkeys, 3-9
  2898. requirements for operation, 1-3
  2899. resident programs, disabling other, 4-5
  2900. resident programs, other, 4-4
  2901. resident vs. non-resident, changing, 5-3
  2902. restarting computer, when needed, 4-3
  2903. retreat to start of city name, 3-12
  2904. Right vs. Left keys, 3-7
  2905. Robinson, IL example, 2-5
  2906. running memory-resident ZIPKEY, 4-1
  2907. S-specifier for playback, 3-12
  2908. Saint(e), unabbreviation, 2-8
  2909. sales tax, adding, 5-3
  2910. samples for keystrokes, 3-1
  2911. schedule of prices, 5-1
  2912.                                                        7-7
  2913. screen distractions, 3-4
  2914. screen, zipcode from, 3-8
  2915. search: city to state/zip, 2-7
  2916. search: state/city to zip, 2-5
  2917. search: zip to city, 2-2
  2918. send money, how to, 5-1
  2919. SET PATH command, 4-6
  2920. shareware, nature of, 0-1
  2921. Shift keys in hotkeys, 3-7
  2922. shredded wheat example, 2-7
  2923. Sidekick and uninstall, 4-3
  2924. Sidekick must be after ZIPKEY, 4-5
  2925. Sidekick, 3-7
  2926. signon window, 2-1
  2927. signon window, quotes mark, 2-9
  2928. signon window, returning to, 2-1
  2929. six-months prohibition, 1-7
  2930. Sizzleware, 1-5
  2931. slow down keyboard, 3-4
  2932. slowdown via W specifier, 3-12
  2933. SmartKey, 3-5
  2934. sources of database, 1-6
  2935. sources of ZIPKEY's data, 3-3
  2936. South, unabbreviation, 2-8
  2937. speed of zipcode lookup, 3-4
  2938. state abbreviations, finding, 2-5
  2939. state name playback, 3-12
  2940. state-and-city search, 2-5
  2941. streets, lack of, 1-3
  2942. subscribe, how to, 5-1
  2943. Superkey must be before ZIPKEY, 4-5
  2944. surcharge for purchase orders, 5-2
  2945. SysReq hotkey, 3-7
  2946. system requirements, 1-3
  2947. T-specifier for playback, 3-11
  2948. table of contents, 0-2
  2949. tax, adding, 5-3
  2950. telephone area code playback, 3-11
  2951. telephone area code search, 2-8
  2952. telephone area code search, 2-9
  2953. telephone directories, 1-6
  2954. telephone numbers, bulletin board, 1-9
  2955. too many cities display, 2-5
  2956. total price, amendments to, 5-3
  2957. trouble: computer freezes up, 4-4
  2958. trouble: many playback keys missed, 4-2
  2959. trouble: playback in wrong fields, 4-2
  2960. trouble: window doesn't pop up, 4-4
  2961. TSRs (memory resident programs), 4-4
  2962. Turbo Pascal, 3-5
  2963. tutorial, definition, 1-1
  2964. two-letter state abbreviation, playback, 3-11
  2965. typeahead in Word 4.0, 1-3
  2966. U. S. Census, 1-6
  2967. unabbreviation, 2-8
  2968. undefined zipcodes within ranges, 2-6
  2969. uninstalling ZIPKEY, 4-3
  2970.                                                        7-8
  2971. unpacked database, licensing, 5-2
  2972. unpacking the database, 1-7
  2973. up-arrow during city search, 2-7
  2974. up-arrow during zipcode search, 2-4
  2975. updates, frequency of, 5-3
  2976. upper vs. lower sensitivity, 2-5
  2977. Ventura Desktop Publisher, 3-10
  2978. version number with "e", 1-7
  2979. video modes: color vs. monochrome, 3-6
  2980. video screen, zipcode from, 3-8
  2981. W-specifier for playback, 3-12
  2982. West, unabbreviation, 2-8
  2983. Wettstein, Greg, 1-9
  2984. what ZIPKEY doesn't do, 1-3
  2985. width of city name, specifying, 3-11
  2986. window characteristics, 3-5
  2987. window prompts, 2-2
  2988. Worcester, MA example, 2-6
  2989. Word 4.0 typeahead, 1-3
  2990. word processor example, 3-2
  2991. Wordstar compatibility, 3-4
  2992. Works, Microsoft, 1-3
  2993. wrong city, coping with, 3-14
  2994. wrong display of hotkey name, 3-8
  2995. Z and C hotkey, 3-7
  2996. Z-specifier for playback, 3-11
  2997. ZC file, how to create, 3-2
  2998. ZC file, large, 4-4
  2999. ZC files, how ZIPKEY finds, 4-6
  3000. zero zipcode output, 2-9
  3001. zeroes to complete a zipcode, 2-6
  3002. ZIP files, 1-8
  3003. ZIP+4 codes, entering, 3-14
  3004. zip-to-city search, 2-2
  3005. zipcode from screen, 3-8
  3006. zipcode from screen, example, 3-15
  3007. zipcode playback, 3-11
  3008. zipcode source for a hotkey, 3-8
  3009. ZIPKEY 2 command, 2-1
  3010. ZIPKEY 3 command, 3-2
  3011. ZIPKEY 4 command, 4-1
  3012. ZIPKEY 5 command, 5-1
  3013. ZIPKEY 7 command, 4-3
  3014. ZIPKEY and other resident programs, 4-4
  3015. ZIPKEY configuration, 3-1
  3016. ZIPKEY in computer's memory, 3-3
  3017. ZIPKEY interrupt, 6-1
  3018. ZIPKEY.COM vs. ZIPKEY.EXE, 1-7
  3019. ZK_ program calls, 6-1
  3020. ZOO files, 1-8
  3021. ZQR file, 3-14
  3022. ZQR file, name of, 3-15
  3023.