home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / pcmagazi / 1992 / 03 / addit.doc < prev    next >
Text File  |  1992-01-10  |  4KB  |  80 lines

  1. ADDIT.COM (Version 1.0)
  2.  
  3. Douglas Boling                         February 11, 1992 (Utilities)
  4.  
  5.  
  6. ADDIT.COM is a small DOS TSR (terminate & stay resident) utility (3.5K)
  7. that adds negative & positive numbers on your screen. You simply block
  8. the on-screen area that contains the relevant numbers, hit the Plus key,
  9. and then you can paste the displayed total either into the same or another
  10. file.
  11.  
  12. USING ADDIT
  13.  
  14. The complete syntax for ADDIT is
  15.  
  16.                                  ADDIT [/U] [/B]
  17.  
  18.      When entered on the DOS command line or as a line in your
  19. AUTOEXEC.BAT file, ADDIT installs itself in memory and waits for you
  20. to call upon its services. The /U switch lets you uninstall the program,
  21. freeing any memory it used. The only restriction on unloading is that
  22. if any additional TSRs were loaded after ADDIT, they must be removed
  23. before uninstalling ADDIT.
  24.  
  25.      Use the /B parameter, and ADDIT will use the video BIOS calls
  26. instead of writing directly to video memory. While this is much slower
  27. than directly writing to video memory, it can come in handy if you have
  28. a nonstandard video board that's not CGA or HDA compatible. If ADDIT
  29. wrote directly to the display memory of an incompatible adapter, you
  30. would see garbage on the screen or your machine might even lock up.
  31.  
  32.      The default hotkey to activate ADDIT is Alt-<Left Shift>. The F1
  33. key brings up a help screen. When you're done with ADDIT, press the
  34. Esc key and ADDIT will return to the background to wait for the next
  35. time it's needed.
  36.  
  37.      When you pop it up, ADDIT presents a one-line banner across the
  38. top of the screen and puts its own block cursor at the spot your program
  39. cursor occupied. The usual arrow keys move the ADDIT cursor, with the
  40. Home and End keys taking it to the beginning and end of the line. The
  41. PgUp and PgDn keys take you to the top and bottom of the screen. To
  42. block (or highlight) an area on screen, hold down the Shift key while
  43. moving the cursor. Since you will normally want to highlight a number
  44. of whole rows, the easiest technique is to go to the top line to be
  45. marked and hit the End key. Then, while holding down the Shift key,
  46. hit the Down Arrow key as many times as required. The section will
  47. then be highlighted. After releasing the Shift key, any subsequent
  48. cursor movement will unblock the highlighted area.
  49.  
  50.      To sum the numbers contained in the blocked-off area, simply hit
  51. the Plus key. (Either the Plus key on the numeric keypad or on the
  52. regular keyboard will do.) ADDIT can handle numbers with up to ten
  53. decimal places. The total will be displayed in the ADDIT banner and
  54. will be stored in a buffer so you can subsequently paste it anywhere.
  55. Positive numbers in the highlighted area will show up on color screens
  56. in yellow (by default); negative numbers (those preceded by a minus
  57. sign) will be displayed in red (by default). This allows you to check
  58. that all of the numbers you want (and only the ones you want) included
  59. have been added.
  60.  
  61.      Note that if a dash (that is, the minus sign) occurs between two
  62. numbers, the second number will be considered negative. But if a dash
  63. is the last character on the line and a number begins the succeeding
  64. line, the hidden end-of-line marker inserted by some word processors
  65. can fool ADDIT into thinking that the number following is positive.
  66. Its color will be your clue.*** How ADDIT distinguishes numbers from
  67. other characters is discussed in the sidebar "Teaching ADDIT to Read."***
  68.  
  69.       Hitting the P key while ADDIT is active will paste the displayed
  70. sum at the cursor location. ADDIT then automatically exits, but it
  71. continues to remember the total in its buffer. Thus, you can paste
  72. the same sum into several places or documents. If the point where you
  73. want to put the result is on a different screen--or in a different
  74. document, perhaps requiring you to exit your application and start up
  75. another--you first exit ADDIT by hitting the Esc key. Then find the
  76. insertion spot you want, bring up ADDIT again by pressing Alt-<Left
  77. Shift>, and hit P. You can clear the banner and buffer at any time by
  78. starting to highlight a new area.
  79.  
  80. Douglas Boling is a contributing editor of PC Magazine.