home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / dbase / zk204.zip / ZIPKEY.DOC < prev    next >
Text File  |  1992-10-27  |  139KB  |  3,050 lines

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