home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / BATUTL / EXT_BAT.ZIP / SCR1.DOC < prev    next >
Encoding:
Text File  |  1984-12-24  |  18.8 KB  |  444 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.                                                      tm    
  13.                           T I Y L I   S O F T W A R E
  14.  
  15.                               is proud to present
  16.  
  17.                   +----------------------------------------+
  18.                   |         The Screen Image Editor        |
  19.                   |                                        |
  20.                   |            and Batch Utility           |
  21.                   |                                        |
  22.                   |                   by                   |
  23.                   |         Frank M. Ramaekers Jr.         |
  24.                   +----------------------------------------+
  25.               (c) Copyright 1984 "Try-It-You'll-Like-It" Software
  26. 10/01/84          Screen Image Editor and Batch Utility V2.1a           Page i
  27.  
  28. Table of Contents:
  29.  
  30. 0.0  The User-supported Concept . . . . . . . . . . . . . . . . . . . . . .  1
  31.  
  32. 1.0  Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  1
  33.      1.1  Overview  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  1
  34.      1.2  The Screen Image Editor . . . . . . . . . . . . . . . . . . . . .  1
  35.      1.3  The Batch Utility . . . . . . . . . . . . . . . . . . . . . . . .  2
  36.      1.4  Minimum Requirements  . . . . . . . . . . . . . . . . . . . . . .  2
  37.  
  38. 2.0  Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  2
  39.      2.1  The Screen Image Editor . . . . . . . . . . . . . . . . . . . . .  2
  40.           2.1.1  Function Key Assignments . . . . . . . . . . . . . . . . .  2
  41.           2.1.2  Alternate Function Key Assignments . . . . . . . . . . . .  3
  42.           2.1.3  Control Key Assignments  . . . . . . . . . . . . . . . . .  3
  43.           2.1.4  Special Key Assignments  . . . . . . . . . . . . . . . . .  4
  44.           2.1.5  Alternate Key Assignments  . . . . . . . . . . . . . . . .  4
  45.           2.1.6  Graphic Keyboard Layout  . . . . . . . . . . . . . . . . .  4
  46.           2.1.7  Line 25 Information  . . . . . . . . . . . . . . . . . . .  4
  47.           2.1.8  Color Chart  . . . . . . . . . . . . . . . . . . . . . . .  5
  48.      2.2  The Batch Utility . . . . . . . . . . . . . . . . . . . . . . . .  5
  49.           2.2.1  Command Format . . . . . . . . . . . . . . . . . . . . . .  5
  50.           2.2.2  Examples . . . . . . . . . . . . . . . . . . . . . . . . .  6
  51.           2.2.3  A Batch File Example . . . . . . . . . . . . . . . . . . .  6
  52.  
  53. 3.0  Registration Form  . . . . . . . . . . . . . . . . . . . . . . . . . .  9
  54. 0.0The User-supported Concept
  55. ----------------------------------
  56.  
  57.      This product is distributed on a basis that the product will sell  itself.  
  58. This reduces advertising,  distribution, and copy-protection costs.  This means 
  59. that  you can copy and share this program with others,  on the conditions  that 
  60. the  program  is  not distributed in modified form and that  no  fee  or  other 
  61. consideration  is  charged.   The  only thing I ask is that if  you  find  this 
  62. product  of  value,  please  send a donation ($24 suggested) to  the  following 
  63. address:
  64.  
  65. Frank M. Ramaekers Jr.
  66. 4614 Arapahoe Tr.
  67. Austin, Texas  78745
  68.  
  69.      Your contribution entitles you to the following:
  70.  
  71.           1)   The latest version of this system.   Which will be mailed to you 
  72.                upon receipt of your donation.
  73.           2)   When a new version is available, you will be notified.  You will 
  74.                then  have  the  option of sending your  original  (with  return 
  75.                postage) for this new version.
  76.           3)   You will also be notified of future products.
  77.           4)   Responses to questions, complaints or problems that you send in.
  78.  
  79.  
  80. 1.0  Introduction
  81. --------------------
  82.  
  83. 1.1  Overview
  84. -------------
  85.      The Screen Image processing system was created to assist in creating menus 
  86. and help screens.   Current DOS batch commands (e.g. ECHO and REM) provide only 
  87. line-by-line creation of a screen image that was extremely slow.   Also,  these 
  88. batch  files were very tedious to edit,  especially if graphic characters  were 
  89. used.   In addition,  neither command provides for attribute selection.   Plus, 
  90. DOS makes no provisions for keyboard input to facilitate the selection process. 
  91. The  SCREDIT.COM program provides a method of retrieving,  editing  and  saving 
  92. screen  images that can be used in a batch file.   SCRBATCH.COM was created  to 
  93. display the screen image and optionally accept a response from the keyboard and 
  94. set the ERRORLEVEL (so it can be tested using the IF batch subcommand).
  95.  
  96. 1.2  The Screen Image Editor
  97. ----------------------------
  98.      The  Screen  Image Editor is a utility by which users can maintain  screen 
  99. images.   Screen images can be loaded,  edited,  and saved.  Most of the common 
  100. graphic characters are easily accessable through the keyboard and are  arranged 
  101. in  a conevient layout.   All the major editing functions are incorporated into 
  102. this editor.  In addition, the editor allows full utilization of all attributes 
  103. in  either  black & white or color.   Also,  an interactive  help  facility  is 
  104. provided.   This facility provides information on all key assignments.
  105. 1.3  The Screen Image Batch Utility
  106. -----------------------------------
  107.      The Batch Utility provides a means of displaying screen images created  by 
  108. the  editor.   This  utility also includes a means of accepting input (via  the 
  109. keyboard)  and  setting the ERRORLEVEL.   In turn,  a batch file can  test  the 
  110. ERRORLEVEL (with the IF batch subcommand) and process the request accordingly.
  111.  
  112. 1.4  Minimum Requirements
  113. -------------------------
  114.      1)   An IBM PC (tm) or compatible.
  115.      2)   PC or MS DOS 2.0 or higher.
  116.      3)   A Minimum of 64k of memory
  117.      4)   One monitor card & monitor (color or monochrome).
  118.      5)   At least one single-sided diskette drive.
  119.      6)   The following programs:   SCREDIT.COM  SCRBATCH.COM SCRHELPA.COM
  120.           SCRHELPB.COM SCRHELPC.COM SCRHELPD.COM SCRHELPE.COM
  121.  
  122.  
  123. 2.0  Instructions
  124. -----------------
  125.  
  126. 2.1  Screen Image Editor
  127. ------------------------
  128.      To invoke the screen image editor, insert the program diskette, then enter 
  129. SCREDIT then press enter.  There are no operands nor options.
  130.  
  131. A>SCREDIT
  132.  
  133. 2.1.1  Function Key Assignments
  134. -------------------------------
  135.      F1 - Toggle   between  Text(standard)/Graphics  keyboard  layouts.    When 
  136.           initialized SCREDIT will have the standard keyboard layout.  Pressing 
  137.           the  F1 key will toggle to the graphics keyboard layout  (hexadecimal 
  138.           characters 80 - FF).
  139.  
  140.      F2 - Toggle foreground blink attribute.   This will toggle the foreground 
  141.           blink attribute bit.
  142.  
  143.      F3 - Swap background/foreground attributes.   This will logically swap the 
  144.           background/foreground  attributes.   Blink  and highlight  cannot  be 
  145.           swapped  and are retained.   Therefore,  the  background  (foreground 
  146.           after swap) attribute will reflect the blink and highlight settings.
  147.  
  148.      F4 - Toggle bright foreground attribute.   This will toggle the foreground 
  149.           attribute bit.
  150.  
  151.      F5 - Increase  foreground attribute value.   This will logically increment 
  152.           the current value of the foreground attribute (black [0] will  become 
  153.           blue [1],  blue [1] will become green [2],  ...  white [F] will become 
  154.           black [0]).
  155.  
  156.      F6 - Decrease  foreground attribute value.   This will logically decrement 
  157.           the  current value of the foreground attribute (blue [1] will  become 
  158.           black [0],  green [2] will become blue [1], ... black [0] will become 
  159.           white [F]).
  160. 2.1.1  Function Key Assignments (cont.)
  161. ---------------------------------------
  162.  
  163.      F7 - Increase background attribute value.   This will logically  increment 
  164.           the  current value of the background attribute (black [0] will become 
  165.           blue [1],  blue [1] will become green [2],  ... white [7] will become 
  166.           black [0]).
  167.  
  168.      F8  - Decrease  background attribute value.  This will logically decrement 
  169.           the  current value of the background attribute (blue [1] will  become 
  170.           black [0],  green [2] will become blue [1], ... black [0] will become 
  171.           white [7]).
  172.  
  173.      F9 - Load screen image from disk.
  174.  
  175.      F10- Save screen image to disk.
  176.  
  177. 2.1.2  Alternate Function Key Assignments
  178. -----------------------------------------
  179.      Alt-F1   - Help   information   which   includes   all   key 
  180.                 assignments. 
  181.  
  182.      Alt-F5 - Clear screen using the current attribute setting.
  183.  
  184.      Alt-F10 - Return to DOS.
  185.  
  186. 2.1.3  Control Key Assignments
  187. ------------------------------
  188.      ^2 - Set/Clear tab settings.
  189.      ^A - Move cursor to beginning of previous word.
  190.      ^D - Move cursor forward one character.
  191.      ^E - Move cursor up one line.
  192.      ^F - Move cursor to beginning of next word.
  193.      ^G - Delete character at cursor position.
  194.      ^H - Delete character before cursor position.
  195.      ^I - Tab forward.
  196.      ^J - Left justify line.
  197.      ^K - Center line.
  198.      ^L - Right justify line.
  199.      ^M - Move cursor to beginning of next line.
  200.      ^N - Move remainder of line to next line.
  201.      ^Q - Delete previous word.
  202.      ^S - Move cursor backward one column.
  203.      ^T - Delete next word.
  204.      ^V - Toggle to/from insert mode.
  205.      ^X - Move cursor down one line.
  206.      ^Y - Delete line.
  207.  
  208. (Note:   Functions ^G,  ^H,  ^N, ^Q, ^T and ^Y fill using the current attribute 
  209. and a space for the character.)
  210. 2.1.4  Special Key Assignments
  211. ------------------------------
  212.      ->      - Move cursor right one column.
  213.      <-      - Move cursor left one column.
  214.      ^       - Move cursor up one row.
  215.      v       - Move cursor down one row.
  216.      <-->    - Tab key.
  217.      Home    - Move cursor to first character on line.
  218.      End     - Move cursor to last character on line.
  219.      Pg Up   - Move cursor to row 1, column 1.
  220.      Pg Dn   - Move cursor to row 24, column 80.
  221.      Ins     - Toggle to/from insert mode.
  222.      Del     - Delete character above cursor.
  223.      ^->     - Move cursor to next word.
  224.      ^<-     - Move cursor to previous word.
  225.      ^Home   - Erase to beginning of line.
  226.      ^End    - Erase to end of line.
  227.      ^Pg Up  - Erase to beginning of screen.
  228.      ^Pg Dn  - Erase to end of screen.
  229.      Sh <--> - Backward tab (Sh is the shift key).
  230.  
  231. (Note:   All  erase functions fill using the current attribute and a space  for 
  232. the character.)
  233.  
  234. 2.1.5  Alternate Key Assignments
  235. --------------------------------
  236.      Please see page 4 of the help facility (Alt-F1) for this information.
  237.  
  238. 2.1.6  Graphic Keyboard Layout
  239. ------------------------------
  240.      Please see page 3 of the help facility (Alt-F1) for this information.
  241.  
  242. 2.1.7  Line 25 Information
  243. --------------------------
  244.      Please see page 5 of the help facility (Alt-F1) for this information.
  245. 2.1.8  Color Chart
  246. ------------------
  247.      The  attribute  byte  of the screen image has  the  following  format  (in 
  248. binary):  XYYY  ZZZZ.   Where  X  is the forground blink toggle.   YYY  is  the 
  249. background color and ZZZZ is the foreground color.
  250.  
  251. -------------------------------------------
  252. | Hex. | Binary | Background | Foreground |
  253. -------+--------+------------+------------+
  254. |  0   |  0000  |  Black     | Black      |
  255. |  1   |  0001  |  Blue      | Blue       |
  256. |  2   |  0010  |  Green     | Green      |
  257. |  3   |  0011  |  Cyan      | Cyan       |
  258. |  4   |  0100  |  Red       | Red        |
  259. |  5   |  0101  |  Magenta   | Magenta    |
  260. |  6   |  0110  |  Yellow    | Brown      |
  261. |  7   |  0111  |  White     | Light Grey |
  262. |  8   |  1000  |   (the     | Dark Grey  |
  263. |  9   |  1001  | high-order | Light Blue |
  264. |  A   |  1010  |    bit     | Lt. Green  |
  265. |  B   |  1011  |    is      | Light Cyan |
  266. |  C   |  1100  |    used    | Light Red  |
  267. |  D   |  1101  |    for     | Lt. Magenta|
  268. |  E   |  1110  | foreground | Yellow     |
  269. |  F   |  1111  |  blink)    | White      |
  270. -------------------------------------------
  271.  
  272. 2.2  The Batch Utility
  273. ----------------------
  274.  
  275. 2.2.1  Command Format
  276. ---------------------
  277. A>SCRBATCH [d:] [path\] filename [.SCR | .ext]  [/a | /c | /n | /pnnn | /q]
  278.                [/i @xxxxxxxxxxxxxxxxxxxxxxxxxxxxx@]  [/o##] 
  279.  
  280.                d:      - Drive of screen image.
  281.                path\   - Path to screen image.
  282.                filename- Filename of screen image
  283.                .ext    - Extension of screen image (.SCR assumed).
  284.                /a      - Ask (return ERRORLEVEL=ASCII of key struck, translated 
  285.                          to upper case.)
  286.                /c      - Ask Character (return ERRORLEVEL=0 if 'A' key  struck,  
  287.                          1  of 'B' key struck ...  25 if 'Z' key  struck.   The 
  288.                          character is translated to upper-case.)
  289.                /i      - Line  25 input prompt (first non-blank character after 
  290.                          the 'i' will be the delimiter for the string)
  291.                /n      - Ask Numeric (return ERRORLEVEL=0 if '0' key struck,  1 
  292.                          if '1' key struck ... 9 if '9' key struck)
  293.                /o      - Override  attribute on line 25 (## is valid hex  code, 
  294.                          default attribute is 07 - normal - white on black)
  295.                /pnnn   - Wait for nnn seconds or until a key is pressed if  nnn 
  296.                          = 0.
  297.                /q      - Query (return ERRORLEVEL=0 if 'y' or 'Y' key struck or 
  298.                          ERRORLEVEL=1 if 'n' or 'N' key struck.)
  299. 2.2.1  Command Format (cont.)
  300. -----------------------------
  301. Notes:
  302. a)  The complete file name (drive, path, filename and extension
  303.     must be the first parameter.  Options are position inde-
  304.     pendent.
  305. b)  If  more  than one of the following options  is  specified,
  306.     the first one issued from this list will take presidence:
  307.     /p /q /a /n /c
  308. c)  SCRBATCH.COM must be on each diskette that utilizes it.
  309.  
  310. 2.2.2  Examples
  311. ---------------
  312. A>SCRBATCH C:\SCR\SCRHELPA /P /I'Press any key to continue'/o87
  313.      This  will  display the screen SCRHELPA.SCR in sub-directory SCR and  wait 
  314.      for  a  key  to  be pressed.   On line 25 the prompt  'Press  any  key  to 
  315.      continue' will be centered and blinking (87h attribute).
  316.  
  317. A>SCRBATCH C:SCRHELPA.XXX /Q /I [Please respond by pressing the 'y' or 'n' key[
  318.      This  will display the screen image SCRHELPA.XXX and set the ERRORLEVEL to 
  319.      0  if a 'y' or 'Y' and to 1 if 'n' or 'N' key was struck.   In addition  a 
  320.      prompt is displayed centered on line 25.
  321.  
  322. A>SCRBATCH C:HELP01 /A
  323.      This will display the screen image HELP01.   The ERRORLEVEL will be set to 
  324.      the ASCII value of the key that was struck.
  325.  
  326. A>SCRBATCH HELP01A /i'Select 0 through 9 from list above.'/n/o8f
  327.      This  will display the screen image HELP01A.SCR.   The ERRORLEVEL will  be 
  328.      set to the value 0 - 9 corresponding to keys '0' - '9'.   Also,  a  prompt 
  329.      message will appear centered on line 25 with a blink & bright attribute.
  330.  
  331. 2.2.3  A Batch File Example
  332. ---------------------------
  333.  1)  SCRBATCH \HELP\LOGO /P3
  334.  2)  :BEGIN
  335.  3)  SCRBATCH \HELP\MENU/I'Select 0 through 9 from list above.'/8f/n
  336.  4)  IF ERRORLEVEL 10 GOTO BEGIN
  337.  5)  CLS
  338.  6)  IF ERRORLEVEL 9 GOTO EXIT
  339.  7)  IF ERRORLEVEL 8 GOTO TREE
  340.  8)  IF ERRORLEVEL 7 GOTO CHKDSK
  341.  9)  IF ERRORLEVEL 6 GOTO DIR
  342. 10)  IF ERRORLEVEL 5 GOTO BASICA
  343. 11)  IF ERRORLEVEL 4 GOTO BASIC
  344. 12)  IF ERRORLEVEL 3 GOTO TALK
  345. 13)  IF ERRORLEVEL 2 GOTO DBASE
  346. 14)  IF ERRORLEVEL 1 GOTO LOTUS
  347. 15)  IF ERRORLEVEL 0 GOTO WS 
  348. 16)  :WS
  349. 17)  CD \WS
  350. 18)  WS
  351. 19)  GOTO BEGIN
  352. 20)  :LOTUS
  353. 21)  CD \LOTUS
  354.  
  355. 2.2.3  A Batch File Example (cont.)
  356. -----------------------------------
  357. 22)  LOTUS
  358. 23)  GOTO BEGIN
  359. 24)  :DBASE
  360. 25)  CD \DBASE3
  361. 26)  ECHO Insert the DBASE III system diskette into drive A: (left drive).
  362. 27)  ECHO  
  363. 28)  PAUSE
  364. 29)  DBASE
  365. 30)  GOTO BEGIN
  366. 31)  :TALK
  367. 32)  CD \TALK
  368. 33)  PC-TALK
  369. 34)  GOTO BEGIN
  370. 35)  :BASIC
  371. 36)  CD \BASIC
  372. 37)  BASIC
  373. 38)  GOTO BEGIN
  374. 39)  :BASICA
  375. 40)  CD \BASIC
  376. 41)  BASICA
  377. 42)  :DIR
  378. 43)  DIR|MORE
  379. 44)  PAUSE
  380. 45)  GOTO BEGIN
  381. 46)  :CHKDSK
  382. 47)  CHKDSK
  383. 48)  PAUSE
  384. 49)  GOTO BEGIN
  385. 50)  :TREE
  386. 51)  TREE/F|MORE
  387. 52)  PAUSE
  388. 53)  GOTO BEGIN
  389. 54)  :EXIT
  390. 55)  CD /
  391.  
  392.      Statement  1 displays the screen image LOGO.SCR in sub-directory \HELP for 
  393. 3  seconds.   The  next  statement (2) is a label that will be  used  later  to 
  394. redisplay the menu screen.   Statement 3 displayse the screen image MENU.SCR in 
  395. sub-directory \HELP until a valid key (0-9) is struck.  In turn, the ERRORLEVEL 
  396. will  be  set  corresponding to the key struck.   In the  next  statement  (4), 
  397. invalid  responses are filtered out (although the ERRORLEVEL will never be  set 
  398. to  10,  this  is  to demonstrate how edit  the  responses).   The  purpose  of 
  399. statement  5 is to clear the screen before the program is executed.   The  next 
  400. statement  (6)  checks if the key struck was 9,  if so a branch is made to  the 
  401. label :WS.  (Notice that the highest value of ERRORLEVEL is filtered off first.  
  402. This is because the 'IF ERRORLEVEL' batch subcommand operates on a greater than 
  403. or equal to premise.)
  404.      In  statement 16 has the label :WS.   The next statement (17) changes  the 
  405. current  directory  to \WS.   Statement 18 actually  executes  WordStar.   When 
  406. WordStar  is  terminated  statement  19  is executed  which  branches  back  to 
  407. redisplay the menu.
  408. 2.2.3  A Batch File Example (cont.)
  409. -----------------------------------
  410.  
  411.      This batch file makes no attempt to reset the directory after each program 
  412. is  executed.   For this reason each change directory statement (CD) starts  at 
  413. the  root  directory  (\).   Then upon exit from the  batch  file  the  current 
  414. directory is reset to the root. 
  415.  
  416.  
  417. -------------------------------------------------------------------------------
  418.  
  419.                      Screen Image Editor Registration Form                v2.1a
  420.     
  421.  
  422.  
  423. Name: _______________________________________________      Date:____/____/____
  424.        (Last)            (First)     (Middle Initial)           (MM   DD   YY)
  425.  
  426.  
  427. Address: --------------------------------------------
  428.  
  429.  
  430. City: _______________________  State: _______________  Zip Code: _____________
  431.  
  432.  
  433. Amount Enclosed: ___________________
  434.                                         +-------------------------------------
  435.                                         |********** DO NOT MARK HERE *********
  436. Send to:  Frank M. Ramaekers Jr.        |
  437.           4614 Arapahoe Tr.             | Serial No.___________________
  438.           Austin, Texas  78745          |
  439.                                         | Version No.__________________
  440.                                         |
  441.                                         | Date issued:_________________
  442. -------------------------------------------------------------------------------
  443.  
  444.            | Date issued: