home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / e / exc20.zip / EXC.DOC next >
Text File  |  1993-03-07  |  61KB  |  1,389 lines

  1.                                EXC USER'S GUIDE
  2.  
  3.                      Copyright 1993 by Gary C. Crider and
  4.                                Parity Solutions
  5.                                
  6.  
  7.  
  8. TABLE OF CONTENTS:
  9.  
  10.         What is EXC? ..................................... 1.0
  11.         The EXC command line ............................. 2.0
  12.         Operational notes ................................ 3.0
  13.           General notes .................................. 3.1
  14.           Interrupt keys ................................. 3.2
  15.           Memory usage ................................... 3.3
  16.           Timing considerations .......................... 3.4
  17.           When EXC may not function or cause problems .... 3.5
  18.           Error handling ................................. 3.6
  19.         Scripts .......................................... 4.0
  20.           Script Commands ................................ 4.1
  21.             BEEP ......................................... 4.1.1
  22.             CASE ......................................... 4.1.2
  23.             CLEAR ........................................ 4.1.3
  24.             CURSOR ....................................... 4.1.4
  25.             DELAY ........................................ 4.1.5
  26.             GOTO ......................................... 4.1.6
  27.             HIDEWIN ...................................... 4.1.7
  28.             IFN .......................................... 4.1.8
  29.             IFY .......................................... 4.1.9
  30.             KEY .......................................... 4.1.10
  31.             LOCATE ....................................... 4.1.11
  32.             LOOK ......................................... 4.1.12
  33.             ON ........................................... 4.1.13
  34.             PAUSE ........................................ 4.1.14
  35.             QUIT ......................................... 4.1.15
  36.             READ ......................................... 4.1.16
  37.             SCRMAX ....................................... 4.1.17
  38.             SEARCH ....................................... 4.1.18
  39.             SETWAIT ...................................... 4.1.19
  40.             SHOW ......................................... 4.1.20
  41.             SHOWAT ....................................... 4.1.21
  42.             SHOWWIN ...................................... 4.1.22
  43.             TICK ......................................... 4.1.23
  44.             TIME ......................................... 4.1.24
  45.             TIMEOUT ...................................... 4.1.25
  46.             TYPE ......................................... 4.1.26
  47.             TYPFILE ...................................... 4.1.27
  48.             WAITFOR ...................................... 4.1.28
  49.             WAITSCR ...................................... 4.1.29
  50.             WINCOLS ...................................... 4.1.30
  51.             WINMAX ....................................... 4.1.31
  52.             WINROWS ...................................... 4.1.32
  53.           Labels ......................................... 4.2
  54.           Remarks ........................................ 4.3
  55.           Example script ................................. 4.4
  56.         Installation ..................................... Appendix A
  57.         Keycode table .................................... Appendix B
  58.         Disclaimer ....................................... Appendix C
  59.         Support .......................................... Appendix D
  60.         Registration ..................................... Appendix E
  61.  
  62.  
  63. 1.0 What Is EXC?
  64.  
  65.    As administrator of a large local area network, I believe whole-
  66. heartedly in automating every task that can be automated.  Even though 
  67. many tasks are computerized, that does not make them automated.  By
  68. automated I mean that you enter one command or batch file name on the
  69. DOS command line and forget about it until the task is performed.  Unfor-
  70. tunately many, if not most, programs require an operator to fill in blanks,
  71. select choices or otherwise interact with the PC to accomplish a task in
  72. which all of these parameters and choices were known to the user beforehand.
  73.  
  74.    I, for one, do not want to have to sit and watch my backups take place.
  75. In fact, I want them done while I am away from the office.  After backups, 
  76. what better time to defragment a hard disk?  Do I want to have to chase menus 
  77. to achieve this after the backup completes?  One of the worst offenders of 
  78. this I have seen is Stacker's SDEFRAG program.  You can automate just about 
  79. everything until the defrag has finished, then a stupid dialogue box pops up 
  80. and asks you if you want to exit the program.  No way to just move on back 
  81. to the batch file and begin defragmenting the next drive.
  82.  
  83.    I first experimented with various keyboard stuffers such as PC Magazine's
  84. KEY-FAKE by Charles Petzold and STACKEY by Barry Simon and Richard Wilson.
  85. These programs take pre-programmed key sequences and stuff them into the
  86. keyboard buffer as if you had typed them at the keyboard.  The trouble is
  87. that many programs rudely clear the keyboard buffer before requesting you to 
  88. enter something or they allow you to interrupt the processing by pressing any 
  89. key.  Since you have already simulated pressing the key, oops!.  In either 
  90. case, you can't simply preprogram your reply and go.  Stacker's SDEFRAG exit 
  91. prompt is an example.  
  92.  
  93.    Stuffers usually offer a way to get around this by programming a delay
  94. into the keystrokes that causes so many seconds to elapse before the key
  95. code is stuffed into the keyboard buffer.  This is a help, but what if the
  96. time for a task (backup and defrag, for example) to complete varies greatly
  97. from one execution to another?  You have to program for the longest possible 
  98. execution time and the task then takes way too long to run in most cases.
  99.  
  100.    Another problem I have with stuffers is that they are almost always 
  101. terminate-and-stay-resident (TSR) programs.  I hate to stuff another program
  102. in my 640k when I don't have to.  Although most allow you to unload them,
  103. you will forget more often than not.
  104.  
  105.    I then came across a program called AUTOMATE by Geoff Friesen that was
  106. a better approach.  You built a script, compiled it and executed it.  No
  107. TSR remained in memory.  The trouble is, the only commands in the script
  108. were execute a program, wait, and insert keys in the buffer.  Also, you
  109. couldn't pass parameters to the program.  AUTOMATE served as my inspiration 
  110. to take it further.
  111.  
  112.    What I wanted was a program that had the intelligence to monitor the 
  113. screen and detect when an event occurred that required me to insert more 
  114. keycodes in the buffer.  I would also like to see logical branching in the 
  115. script and the ability to plan for exception processing as well as when 
  116. everything performs normally.  I want to be able to enter keyboard input 
  117. when a certain string appears on the screen or when a string such as 
  118. "Please wait..." disappears from the screen.  There are times I just want 
  119. to wait until any change at all occurs on the screen.
  120.  
  121.    EXC then, is more than just a buffer stuffer.  It is a script (a.k.a. 
  122. macro) processor that has a very simple script language that allows very 
  123. complex scripts to execute much faster than you could execute them in attended 
  124. mode.  There are only slightly over thirty commands in the entire script 
  125. language!  Only about a dozen of these will be used often.  The script 
  126. language is interpretive, so no compile is needed.  It is not a TSR, so 
  127. nothing remains to eat up your precious RAM.
  128.  
  129.    EXC can even be used with your favorite DOS communications program to
  130. process online scripts.  Send CIS mail, download files, etc.
  131.  
  132.    You simply execute EXC specifying the script file to use and the program
  133. to be executed.  You include all command line parameters for the program
  134. as usual.  By combining EXC executions in batch files, extremely complex
  135. processing can be reduced to a single DOS command.  EXC even returns the
  136. same DOS ERRORLEVEL that your program returned upon completion.
  137.  
  138.    All you need to know now is the format of the EXC command line and how
  139. to write a script.
  140.  
  141.  
  142.  
  143. 2.0 The EXC Command Line
  144.  
  145.    Format: EXC [path]scriptfile [[path]program] [command-line parameters]
  146.  
  147.    The scriptfile is the filename of the script to be processed.  The 
  148. extension, if specified, must be .SCR, but is not required to be specified.
  149. the script file is assumed to be in the current directory if a path is
  150. not specified.
  151.  
  152.    The program does not require an extension, but it must be a .EXE or
  153. .COM executable program file.  .BAT files cannot be executed with EXC.  If
  154. the path is not specified, the environment PATH= directories are searched.
  155. If the program is omitted from the command line, COMMAND.COM is assumed.
  156.  
  157.    The command-line parameters are any parameters that you would specify
  158. on the DOS command line if you were executing the program external to EXC.
  159.  
  160.    
  161.  
  162. 3.0 Operational notes   
  163.  
  164. 3.1 General notes
  165.  
  166.    If you want EXC scripts to execute multiple programs and/or enter 
  167. intrinsic DOS commands on the DOS command line, omit the program from
  168. the EXC command line or specify COMMAND.COM which is the default.  Your
  169. script will begin executing on an empty DOS command line.  When using
  170. COMMAND.COM as the object of an EXC script, you must terminate the script
  171. with:
  172.  
  173.   QUIT
  174.   -or-
  175.   TYPE "EXIT"
  176.   KEY <ENTER>
  177.  
  178. in order to terminate the second copy of COMMAND.COM that you have loaded
  179. and allow EXC to complete.  If you don't, you could end up eating up your
  180. conventional memory with copies of EXC and COMMAND.COM.  QUIT automatically
  181. issues the EXIT if COMMAND.COM was invoked.  The same occurs when EXC
  182. encounters end-of-file on your script file.  If you terminate the script
  183. with LEFT SHIFT-RIGHT SHIFT, you need to type EXIT at the DOS prompt to
  184. terminate the COMMAND.COM that you started and remove EXC from memory.
  185.    
  186.    Don't get cute and try to execute EXC as the object program of an EXC
  187. command.  While it might logically work, I can see no possible need for
  188. such action and you and your system are at your own risk.
  189.  
  190.    EXC creates an extended keyboard buffer that will hold 256 keycodes.  The
  191. DOS keyboard buffer will hold 16 keycodes.  Thus you may stuff up to 528
  192. keycodes with TYPE and KEY before the program requests keyboard input.  If
  193. you overflow this buffer (very unlikely), a runtime error occurs and script
  194. processing is halted.
  195.  
  196.    EXC is written in Borland C++, a product of Borland International.
  197.  
  198.  
  199. 3.2 Interrupt keys
  200.  
  201.    You can pause execution of a script by pressing the Scroll Lock key.  If   
  202. your keyboard has a Scroll Lock indicator light, the light will be on while   
  203. the script is paused.  Pressing Scroll Lock again resumes execution of the
  204. script exactly where it left off.  Any unexpired wait time must elapse
  205. before another command is processed.
  206.  
  207.    You can terminate execution of a script by holding down both the LEFT
  208. and RIGHT SHIFT keys.  A beep will indicate that the script is being
  209. terminated.  Execution of any spawned program will continue.
  210.  
  211.    The Pause key on your keyboard pauses all execution at the time the next
  212. screen write occurs.  Timer interrupts continue.  EXC detects the pause
  213. state and suspends itself.  When you strike any key, both EXC and the
  214. spawned task will resume processing.  Any unexpired wait time must elapse
  215. before another command is processed.  While paused, the spawned program
  216. remains active.
  217.    
  218.    Since EXC is executing as a timer interrupt with your program operating
  219. as a spawned subtask, cycle-stealing multitasking is occurring.  This can 
  220. cause a few problems.  If you must interrupt execution of your program, your 
  221. best bet may actually be pressing CTRL-ALT-DEL to reboot the computer.  If 
  222. you hit CTRL-BREAK, you will normally interrupt just one task while the other
  223. continues.  Pressing CTRL-BREAK again then interrupts the remaining task.
  224. This can confuse the remaining task to no end and lead to a system lock-up
  225. or other undesirable result.  If you are lucky, you may actually get by with 
  226. it, but I don't recommend it.  Even if you terminate EXC with LEFT SHIFT-
  227. RIGHT SHIFT, the timer interrupt is still active until your program 
  228. terminates, so the same problem can occur.
  229.  
  230.  
  231. 3.3 Memory usage
  232.  
  233.    EXC requires approximately 40K of conventional memory overhead.  After
  234. loading, it then allocates a buffer to hold your script file and a buffer
  235. for reading the screen contents.  If your application program's requirements 
  236. are pushing the limits of available RAM, you may not be able to execute it 
  237. under EXC control.  If COMMAND.COM is spawned, an additional 3K (DOS 5) is 
  238. used.
  239.  
  240.    The screen buffer varies according to the screen size active at startup or
  241. the value specified in a SCRMAX command.  It will require one byte for every
  242. character position on the screen, plus 4 bytes.  Thus an 80 x 25 text mode 
  243. will require a buffer of 2004 bytes.  If SCRMAX is present, that buffer size
  244. is always allocated, regardless of the initial text mode.
  245.  
  246.    The script buffer is the size required to hold all script commands strung
  247. end-to-end with 1 byte between each command.  Leading and trailing spaces
  248. are not counted.  If you use TYPFILE, the contents of the specified file are
  249. added to the script buffer.  Thus, your script buffer will increase by the 
  250. size of all files specified in TYPFILE commands.  If you specify the same
  251. file in two different TYPFILE commands, the file will be loaded into memory 
  252. twice.  If the TYPFILE is executed multiple times within a loop, it only 
  253. requires buffer space for a single copy of the file.
  254.  
  255.    With 604k of available memory, I am able to load a simple script with
  256. 35,000 fairly short commands.  
  257.  
  258.    Versions prior to 2.0 were limited to a total memory allocation of 64k 
  259. for all buffers.
  260.  
  261.    If your script is too large, you may encounter an error allocating script
  262. memory, allocating screen buffer memory or you will encounter an error that
  263. says you do not have enough memory to spawn your program.
  264.    
  265.  
  266. 3.4 Timing considerations
  267.  
  268.    EXC installs itself as a timer interrupt that is invoked 18.2 times
  269. per second.  If it has no work to do, it simply executes the system timer
  270. interrupt and any other chained timer interrupts and returns.  During waits 
  271. (DELAY, WAITFOR, etc.) the frequency of invocation is reduced to twice per 
  272. second.  This minimizes the impact of the interrupt on the performance of 
  273. your program.  A half-second is forever to most computers.  This also means
  274. that if you are searching for a string with WAITFOR, and the string flashes 
  275. on the screen for less than 1/2 second, it will not be detected.
  276.  
  277.    Needless to say, EXC does not have but 1/18th of a second to retrieve and
  278. execute a command.  This is a long time in a fast computer and a short
  279. time to a slow system.  I try to break commands down into logical parts that
  280. are executed in consecutive interrupts.  Obviously, there are some commands
  281. that will probably take longer than 1/18th of a second, especially on slower
  282. systems.  EXC is a handler for interrupt 1C.  No new 1C interrupts are
  283. initiated by the system until the active one is complete.  While missing
  284. a few interrupts does not hurt EXC or DOS, it could effect a spawned task
  285. or TSR that is also servicing 1C interrupts.
  286.  
  287.  
  288. 3.5 When EXC may not function or cause problems
  289.  
  290.    GRAPHICS MODES do not store text characters in video memory, only pixels
  291. of differing colors.  EXC cannot interpret these pixels into characters, thus
  292. commands that are based on screen reads will not work in graphics modes.
  293.  
  294.    In order to execute screen reads an writes rapidly due to timing 
  295. restraints, EXC reads and writes (SHOW, SHOWIN, READ, WAITFOR, WAITSCR, etc.)
  296. directly to and from video memory at pages B000-B7FF.  If you use DESQVIEW
  297. or a special graphics mode that relocates the active video page outside
  298. this area, screen reads and writes will not function properly.  This also
  299. prevents these commands from working properly in CGA modes.  All VGA text
  300. modes and most SVGA text modes should work properly.  If you use programs
  301. that change to a different text resolution during processing, please be sure 
  302. to read about the SCRMAX command.
  303.  
  304.    If the program you are executing or a TSR that is loaded in memory moves
  305. or otherwise messes with the DOS keyboard buffer, it could cause EXC to
  306. malfunction.  The most likely symptom would be keys that you TYPE or KEY
  307. not showing up or not appearing to have been pressed.  EXC uses BIOS 
  308. interrupt 16h, service 5 to insert the keys into the keyboard buffer.  It
  309. does not reallocate or move the buffer.  It merely creates a new extended
  310. buffer that only EXC is aware of.  As the timer interrupts occur, EXC
  311. always checks to see if anything is in the extended buffer, if so it will
  312. move as many keycodes as the PC keyboard buffer will hold into the keyboard
  313. buffer, or until the extended buffer is empty.  BIOS interrupt 16h is not
  314. available until later XT BIOSes.  As a general rule, EXC should not be used
  315. except on AT models or later.
  316.  
  317.    Other factors that could cause EXC to malfunction include programs and
  318. TSRs that have timer and keyboard interrupt handlers.  Customary usage of
  319. these interrupts provides for allowing other installed handlers to perform
  320. their function, but you cannot count on all programmers to abide by these
  321. conventions.
  322.  
  323.    If a TSR or spawned task is using timer interrupt 1C for timing (music,
  324. communications, etc.) the timing could be thrown off slightly by EXC, 
  325. especially in slower systems.  In most cases, the effect will be negligible.
  326.  
  327.    DOS 5.0's EDIT program, in the pull-down menus, accepts keyboard input 
  328. from the keyboard buffer, but will not process that key press until it 
  329. receives an interrupt from the keyboard.  EXC cannot simulate hardware 
  330. interrupts.  This is the only program I have seen that does this, but since 
  331. EDIT is the editor used by QuickBASIC I suppose it will also have the same 
  332. problem.  Other Microsoft products may also use this technique.
  333.  
  334.    If you spot another program, video mode or anything else that causes
  335. EXC to malfunction, send me a CIS mail or U.S. mail note and I will check
  336. it out if I can.  I will include a note in this section on those reported
  337. problems.
  338.  
  339.  
  340. 3.6 Error handling
  341.  
  342.    If an error occurs that prevents EXC from initiating the program, a
  343. message will appear and a DOS ERRORLEVEL of 255 will be returned.  If
  344. the program is successfully initiated, EXC will return the DOS ERRORLEVEL
  345. that the program returned when it completed.  There is an RC = nnn message
  346. after EXC terminates that displays the DOS ERRORLEVEL returned by your
  347. program and by EXC.  When COMMAND.COM is executed, the ERRORLEVEL will
  348. not reflect what was returned from one of the programs you executed and
  349. will always be zero.
  350.  
  351.    If EXC encounters an error while processing the script (i.e. an invalid
  352. script statement) it will sound two short beeps on the PC speaker and
  353. terminate processing any more script commands.  When the spawned program
  354. completes or is exited, a message will appear specifying the error EXC 
  355. encountered.
  356.  
  357.    If the spawned program terminates before EXC has finished processing
  358. the script, all script processing terminates at that point.  Keycodes
  359. that have been stuffed into the buffer remain there.  This allows you
  360. to enter a new command on the DOS command line from within your script.
  361. You can actually chain EXC processing without the use of a batch file.
  362.  
  363.  
  364. 4.0 Scripts
  365.  
  366.   Scripts can be written with any ASCII text file editor.  There is one 
  367. command per line.  Leading and trailing blanks and tabs, lines beginning with 
  368. a semicolon (;) and blank lines are ignored by the script processor.  You may 
  369. have more than one blank between the command and its parameter(s).
  370.  
  371.   All window coordinates specified in some commands are based on the full 
  372. screen currently displayed.  The upper right corner is column 1, row 1.
  373.  
  374.   All "string" parameters can accept quotes within the string by placing
  375. the characters \q (lower case) in the string where you want a quote to
  376. occur.
  377.  
  378.  
  379. 4.1 Script Commands
  380.  
  381.  Note: Brackets ([]) indicate an optional parameter and should not be
  382.        included as part of the command.  Quotes (""), where specified, 
  383.        are required to be entered as part of the parameter.
  384.  
  385.  BEEP                   Sound a short beep on speaker. Useful in debugging
  386.                         scripts.
  387.  CASE ON                The CASE commands enable case-sensitive (ON) or case-
  388.  CASE OFF               insensitive (OFF) compares by WAITFOR and SEARCH.  The
  389.                         initial mode is CASE ON.
  390.  CLEAR                  Clear the screen.
  391.  CURSOR col row         Move the cursor to the specified coordinates.
  392.  DELAY n                Wait n seconds
  393.  GOTO label             Unconditional branch to label.
  394.  IFN label              If condition set to N, go to label.
  395.  IFY label              If condition set to Y, go to label.
  396.  HIDEWIN                Restore a window displayed with SHOWIN to it's 
  397.                         original color attributes.
  398.  KEY mnemonic [n]       Push the key onto the keyboard stack. 'n' is the
  399.                         number of times you want the keycode inserted.
  400.  LOCATE "string"        Reads the screen until the string appears, then moves 
  401.                         the cursor to the start of the string.
  402.  LOOK "string"          Test to see if the string was on the screen at the 
  403.                         time the screen was last read.  Screen reads occur
  404.                         during execution of READ, SEARCH, WAITSCR and WAITFOR 
  405.                         commands.  Sets "Y/N" condition.
  406.  ON n label             Command will do nothing n times and on pass n+1, it
  407.                         will branch to label.
  408.  PAUSE                  Causes the script to be paused as if Scroll Lock were
  409.                         pressed.
  410.  QUIT                   Halt processing the script file.
  411.                         End-of-file on the script file issues an automatic
  412.                         QUIT.
  413.  READ                   Read the current screen contents.
  414.  SCRMAX cols rows       Specifies the largest screen size that will be used       
  415.                         during execution.  Used to allocate screen buffer.
  416.  SEARCH "string"        Read screen and test to see if the string is on the 
  417.                         screen. Sets "Y/N" condition.
  418.  SETWAIT nnn            Wait nnn seconds before a WAITFOR or WAITSCR times
  419.                         out.
  420.  SHOW attr "string"     Display the string using the specified attribute.
  421.                         Displays at the location specified in SHOWAT.
  422.  SHOWAT col row         Specifies location for subsequent SHOW command
  423.                         strings to be displayed.
  424.  SHOWIN attr            Rewrite the current window text in the specified
  425.                         attribute.
  426.  TICK n                 Same as DELAY except n represents 1/18th of a second
  427.                         instead of a second.
  428.  TIME hhmmss            Pause execution of subsequent commands until the               
  429.    
  430.                         specified time of day.
  431.  TIMEOUT label          Branch to label when the next WAITFOR or WAITSCR
  432.                         timeout occurs.
  433.  TYPE "string"          Type the ASCII string.
  434.  TYPFILE filespec [mnemonic]      
  435.                         Type the contents of the specified file.  Replace
  436.                         CR/LFs with specified mnemonic.
  437.  WAITFOR [NOT] "string" Wait until the string appears on the screen.  If NOT
  438.                         specified, wait until string is not on screen.
  439.  WAITSCR                Wait until anything changes on the screen.
  440.  WINCOLS start end      Limit screen reads and SHOWIN to the screen columns
  441.                         specified.
  442.  WINMAX                 Remove row and column restraints imposed by WINCOLS
  443.                         and WINROWS.  Subsequent reads read the full screen.
  444.  WINROWS start end      Limit screen reads and SHOWIN to the screen rows
  445.                         specified.
  446.  :label                 Define a label.
  447.  
  448.  
  449. 4.1.1 BEEP
  450.  
  451.  Sounds a short BEEP on the PC speaker.  Since there is no visual feedback
  452.  for many of the operations and branches performed while processing a script,
  453.  debugging a script can be tough if it is complex.  Inserting a BEEP at a
  454.  strategic location in the script will tell you if processing ever reached
  455.  that point in the script.
  456.  
  457.  NOTE: BEEP does not extend the duration of the timer interrupt.  It actually
  458.  is turned on, then turned off a few ticks later.
  459.  
  460.  
  461. 4.1.2 CASE ON / CASE OFF
  462.  
  463.  The CASE commands determine case sensitivity during SEARCH, LOOK and WAITFOR
  464.  string searches.  If CASE is ON, the search string and screen contents are 
  465.  unchanged during the search, and must match in upper and lower case.  If 
  466.  CASE is OFF, the search string and all characters read from the screen are 
  467.  converted to upper-case before the search begins so that case does not 
  468.  influence the result of the compare.
  469.  
  470.  The initial CASE mode is ON.
  471.  
  472.  NOTE - You must reread the screen after changing the CASE mode before the
  473.  new CASE mode will take effect.
  474.  
  475.  See TIMEOUT for example.
  476.  
  477.  
  478. 4.1.3 CLEAR
  479.  
  480.  The CLEAR command clears the entire screen, not just the active window. 
  481.  It also homes the cursor.  Use with caution, this could cause problems 
  482.  within many applications.
  483.  
  484.  
  485. 4.1.4 CURSOR col row
  486.  
  487.  The cursor is moved to the location on the screen (not just within the
  488.  active window) specified by col and row.  Col and row are the screen column
  489.  and row.
  490.  
  491.  CURSOR is designed primarily to be used in a full screen editor or similar
  492.  applications where the cursor can be moved with the arrow keys.  The 
  493.  destination must be in an area of the screen where the active application 
  494.  allows typing.
  495.  
  496.  In order for your application to recognize that the cursor has been moved,
  497.  a series of <LEFT> <RIGHT> <UP> and <DOWN> keys are stuffed into the
  498.  buffer and executed until the cursor is at the desired location.  If you
  499.  send the cursor to a location that is not in an acceptable input area of
  500.  the active application, the cursor will jump around the destination, but
  501.  never get there.  You will have to terminate the script with LEFT SHIFT-
  502.  RIGHT SHIFT.
  503.  
  504.  Example:
  505.  
  506.    CURSOR 17 41
  507.  
  508.  
  509. 4.1.5 DELAY n
  510.  
  511.  Pauses execution of subsequent script commands until the specified number
  512.  of seconds has elapsed.
  513.  
  514.  Example: DELAY 3
  515.  
  516.  
  517. 4.1.6 GOTO label
  518.  
  519.  Executes an unconditional branch to the command following the specified 
  520.  label. 
  521.  
  522.  See ON for example.
  523.  
  524.  
  525. 4.1.7 HIDEWIN
  526.  
  527.  Restore the active window to its original attributes after a SHOWIN command 
  528.  has be executed.  If no SHOWIN has been executed, the results will not be
  529.  pleasing to the eye.  Also, screen reading commands must not be executed
  530.  between a SHOWIN and its corresponding HIDEWIN.  See SHOWIN for reasons for
  531.  using SHOWIN and HIDEWIN.
  532.  
  533.  See SHOWIN for example.
  534.  
  535.  
  536. 4.1.8 IFN label
  537.  
  538.  This tests the results of a previous SEARCH or LOOK command.  If the search 
  539.  string was not located on the screen, processing resumes at the command 
  540.  following the specified label.  If the string was found on the screen, 
  541.  processing resumes with the next command after the IFY command.
  542.  
  543.  If no previous SEARCH or LOOK has been issued, processing continues after 
  544.  branching to the specified label.  Thus, without a preceding SEARCH or
  545.  LOOK command, the IFN command becomes an unconditional branch equivalent to 
  546.  a GOTO command.
  547.  
  548.  The IFN statement does not have to be the next command after the SEARCH or
  549.  LOOK.
  550.  
  551.  Example:
  552.  
  553.  :Loop
  554.    READ
  555.    LOOK "XYZ"
  556.    IFN LoopEnd
  557.    .
  558.    .
  559.    .
  560.    GOTO Loop
  561.  :LoopEnd
  562.    .
  563.    .
  564.    .
  565.  
  566.  
  567. 4.1.9 IFY label
  568.  
  569.  This tests the results of a previous SEARCH or LOOK command.  If the search 
  570.  string was located on the screen, processing resumes at the command 
  571.  following the specified label.  If the string was not found on the screen, 
  572.  processing resumes with the next command after the IFY command.
  573.  
  574.  If no previous SEARCH or LOOK has been issued, the result is negative and 
  575.  processing continues without branching.  Thus, without a preceding SEARCH 
  576.  or LOOK command, the IFY statement appears as a null or nonexistent command.
  577.  
  578.  The IFY statement does not have to be the next command after the SEARCH or 
  579.  LOOK.
  580.  
  581.  See ON for example.
  582.  
  583.  
  584. 4.1.10 KEY <mnemonic> [n]
  585.  
  586.  KEY is used to enter special keys that require mnemonics (special names
  587.  enclosed in <> that represent their function) in order to input them to
  588.  the keyboard buffer.
  589.  
  590.  If n is specified, it is the number of times <mnemonic> will be inserted 
  591.  into the keyboard buffer.  For instance, if you wanted three TABs, you would
  592.  type "KEY <TAB> 3".  If n is not specified, it is assumed to be 1.
  593.  
  594.  The following key mnemonics are recognized:
  595.  
  596.  Single keys mnemonics:
  597.  
  598.  <BKSP>          <DEL>            <DOWN>           <END>            <ENTER>         
  599.  <F1>-<F12>      <ESC>            <HOME>           <INS>            <LEFT>          
  600.  <PGDN>          <PGUP>           <PRTSC>          <RIGHT>          <TAB>           
  601.  <UP>            <GRAY5>          <GRAY+>          <GRAY->          <GRAY*>
  602.  <x>             <SPACE>
  603.  
  604.  Two key mnemonics:
  605.  
  606.  Shift key combinations: <SHF+s> or <SHF+x>     
  607.  CTL key combinations:   <CTL+s> or <CTL+x>
  608.  ALT key combinations:   <ALT+s> or <ALT+x>
  609.  
  610.  x = any ASCII value that can be entered from the keyboard with a single
  611.      key, or SHIFT + a single key.
  612.  
  613.  s = any of the single key mnemonic keywords or character except <PRTSC>.
  614.  
  615.  NOTE: Some SHF, CTL and ALT key combinations are undefined.  See the
  616.        keycode table in Appendix A.  There are no mnemonics for entering 
  617.        3-or-more-key combinations.  To detect these, a program must 
  618.        interrogate the keyboard flags to see if CTL, ALT or SHIFT are being 
  619.        held down.  This can only be done in real time as the keys are being 
  620.        pressed, therefore they cannot be simulated by placing these non-
  621.        existent key codes into the keyboard buffer.
  622.  
  623.  Examples:
  624.  
  625.    KEY <ESC> 3
  626.    KEY <CTL+F10>
  627.    KEY <ENTER>
  628.  
  629.  
  630. 4.1.11 LOCATE "string"
  631.  
  632.  The LOCATE command is mostly a combination of WAITFOR and CURSOR.  You
  633.  provide a string.  Processing will be suspended until that string appears
  634.  in the active window or a timeout occurs.  Once the string is located,
  635.  the cursor is moved, via a sequence of arrow keys stuffed in the keyboard
  636.  buffer, to the location of the first character of the string.
  637.  
  638.  LOCATE is designed primarily to be used in a full screen editor or similar
  639.  application where the cursor can be moved with the arrow keys.  The located
  640.  string must be in an area of the screen where the active application allows
  641.  typing.
  642.  
  643.  
  644. 4.1.12 LOOK "string"
  645.  
  646.  Look at the last screen that was read to see if it contains the value in
  647.  "string".  The entire active window contents will be searched to see if 
  648.  "string" was being displayed when the last screen read occurred.   The 
  649.  string may be any valid screen characters.  There is no wait involved as 
  650.  with WAITFOR.
  651.  
  652.  The screen contents are read each time a READ, SEARCH, WAITSCR, WAITFOR or
  653.  LOCATE command is executed.  In the case of WAITFOR and WAITSCR, multiple 
  654.  reads occur until a search string or change is detected.  The contents of 
  655.  the screen buffer remain as they were when the last read was executed at the
  656.  time the search string or change was detected or a timeout occurred.
  657.  
  658.  Once it has been determined whether or not "string" was being displayed,
  659.  an internal variable is set to "Y" or "N".  IFY and IFN can then be used to
  660.  test the result of the search and then branch accordingly.
  661.  
  662.  
  663. 4.1.13 ON n label
  664.  
  665.  For the first n executions of the ON command, execution simply passes to the 
  666.  next command.  On the next pass through the ON command, a branch occurs to
  667.  label.  Example:
  668.  
  669.      :LOOP
  670.        ON 5 ENDLOOP
  671.        SEARCH "ERROR:"
  672.        IFY EXIT
  673.        TYPE "xyz"      - These two instructions are executed five
  674.        KEY <DOWN>      - times unless an error message pops up.
  675.        GOTO LOOP       
  676.      :ENDLOOP
  677.        KEY <ENTER>
  678.      :EXIT
  679.        QUIT
  680.        
  681.  
  682. 4.1.14 PAUSE
  683.  
  684.  PAUSE simulates pressing the Scroll Lock key to pause the script execution.
  685.  See the section on interrupt keys for a description of pause processing.
  686.  
  687.  
  688. 4.1.15 QUIT
  689.  
  690.  QUIT stops processing a script at the point where it is encountered during
  691.  script execution.  The same result is obtained when there are no more script
  692.  commands to process.
  693.  
  694.  If COMMAND.COM was invoked by the EXC command line, QUIT types EXIT and keys
  695.  <ENTER> in order for EXC to be able to complete.  If you issue the QUIT 
  696.  while another program is active, you will not obtain the desired results.
  697.  
  698.  See TIMEOUT for example.
  699.  
  700.  
  701. 4.1.16 READ
  702.  
  703.  Reads the active window for subsequent testing with the LOOK command.  Using 
  704.  a READ followed by several LOOKs that examine the same screen contents can
  705.  be much more efficient than issuing several SEARCHes, each of which reads
  706.  the entire screen contents.
  707.  
  708.  
  709. 4.1.17 SCRMAX cols rows
  710.  
  711.  I hate including technical parameters in my commands, but this one is a
  712.  must for successful operation of EXC in larger screen modes.
  713.  
  714.  Specify SCRMAX if you expect a spawned application to change to a text 
  715.  screen mode larger than the text mode in use when EXC is initiated.  For
  716.  instance, if you are in DOS with 25 rows of 80 column text and you initiate
  717.  an editor with EXC and the editor places the screen in 80x50 text mode,
  718.  specify "SCRMAX 80 50" in your script (no quotes).  Since this command is
  719.  processed when the script is being loaded into memory and not after the
  720.  script processing begins, it may be placed anywhere within your script.
  721.  Logically, it should occur at the start.  If multiple SCRMAX commands are
  722.  encountered, only the last one input will be used.  If your application will
  723.  use multiple screen sizes, specify the largest (in area: cols times rows)
  724.  that will be used.
  725.  
  726.  If you do not include SCRMAX in your script, it is assumed that the screen
  727.  size in effect when EXC is loaded and before the spawned program is loaded 
  728.  will be the maximum size needed.
  729.  
  730.  The range of text mode screen sizes supported by EXC includes from 40x20 to 
  731.  200x100 characters.
  732.  
  733.  SCRMAX can have a major impact in the amount of memory occupied by EXC.
  734.  It would seem that the logical thing for EXC to do would be to examine
  735.  the screen size before each read and allocate the screen memory buffer
  736.  accordingly at that time.  However, since EXC spawns another program which
  737.  can, and often does, allocate all of the remaining memory, EXC must pre-
  738.  allocate the largest buffer that will be required before spawning the 
  739.  program.  A screen buffer requires the same number of bytes as the rows 
  740.  times the columns, plus 4 bytes.  Thus, an 80x25 VGA text screen will 
  741.  require a 2,004 byte buffer.  I actually had a user contact me who uses a 
  742.  132x66 display (great eyes or a huge monitor!).  This would require 132 * 66 
  743.  or 8,712 bytes of memory.  
  744.  
  745.  If you do not specify SCRMAX and your program bumps up the screen size,
  746.  the effective area of the larger screen is the upper left quadrant
  747.  corresponding to the size of the screen when EXC was loaded.  This is
  748.  also true if you specify an SCRMAX smaller than the largest screen.  In
  749.  other words, if you specify SCRMAX 80 25 and your program changes to a
  750.  132x44 screen,  Only the first 80 columns and 25 rows are read by EXC's
  751.  READ, WAITFOR, WAITSCR, LOCATE and SEARCH commands.  If all of the strings
  752.  you search for and changes you wish to detect are in the upper left of
  753.  the screen, you can save memory by specifying a smaller SCRMAX size.  You 
  754.  would really have to be in a memory crunch to bother with this approach, 
  755.  I suspect.
  756.   
  757.  Examples:
  758.  
  759.    SCRMAX 80 50
  760.    SCRMAX 132 25
  761.  
  762.  
  763. 4.1.18 SEARCH "string"
  764.  
  765.  At any point in processing the script, you may check to see if certain
  766.  information is on the screen.  The entire active window will be read and 
  767.  searched to see if "string" is being displayed.   The string may be any 
  768.  valid screen characters.  There is no wait involved as with WAITFOR.
  769.  
  770.  Once it has been determined whether or not the string is being displayed,
  771.  an internal variable is set to "Y" or "N".  IFY and IFN can then be used to
  772.  test the result of the search and then branch accordingly.
  773.  
  774.  SEARCH is basically a READ followed immediately by a LOOK.
  775.  
  776.  See ON for example.
  777.  
  778.  
  779. 4.1.19 SETWAIT seconds
  780.  
  781.  This sets the timeout limit for WAITSCR, WAITFOR and LOCATE commands.  If 
  782.  processing is waiting after invoking any of these commands and the specified 
  783.  number of seconds elapses, TIMEOUT processing, described under TIMEOUT, will 
  784.  be invoked.
  785.  
  786.  You may change the SETWAIT timeout limit at any point while processing the 
  787.  script.
  788.  
  789.  If SETWAIT is set to zero, no timeout ever takes place and EXC will wait
  790.  indefinitely during WAITFOR, WAITSCR and LOCATE.  The initial value of the 
  791.  SETWAIT timer is zero. 
  792.  
  793.  See TIMEOUT for example.
  794.  
  795.  
  796. 4.1.20 SHOW attr "string"
  797.  
  798.   SHOW displays a string at a given location on the screen.  This command
  799.  is mostly useful for debugging scripts by displaying information about the
  800.  progress of the script during execution.  While mostly harmless, it can cause
  801.  problems if a spawned program reads screen memory.  Use it cautiously.
  802.   
  803.  The string is displayed at the location specified in the last executed
  804.  SHOWAT command.
  805.   
  806.  The screen attribute is the sum of a background value plus a foreground
  807.  value from the table below.  Add 128 if you want it to blink.
  808.  
  809.   Background colors:       Foreground colors:
  810.  
  811.     0 Black                 0 Black
  812.    16 Blue                  1 Blue
  813.    32 Green                 2 Green
  814.    48 Cyan                  3 Cyan
  815.    64 Red                   4 Red
  816.    80 Magenta               5 Magenta
  817.    96 Brown                 6 Brown
  818.   112 Light Gray            7 Light Gray
  819.                             8 Dark Gray
  820.                             9 Light Blue
  821.                            10 Light Green
  822.                            11 Light Cyan
  823.                            12 Light Red
  824.                            13 Light Magenta
  825.                            14 Yellow
  826.                            15 White
  827.  
  828.  See TIMEOUT for example. 
  829.  
  830.  
  831. 4.1.21 SHOWAT col row
  832.  
  833.  Specifies the location on the screen where subsequent SHOW commands will
  834.  display their strings.  The location does not have to be within the active
  835.  window set via WINROWS and WINCOLS.
  836.  
  837.  See TIMEOUT for example.
  838.  
  839.  
  840. 4.1.22 SHOWIN attr
  841.  
  842.  SHOWIN is designed as an aid to script writing.  Sometimes you will want to
  843.  restrict the active window to certain rows and columns, thus creating a
  844.  smaller active window for processing commands that read the screen.
  845.  
  846.  To make sure you have calculated the correct area for the active window, you
  847.  can use SHOWWIN to show you where the active window is located on the 
  848.  screen.  SHOWIN will change the attribute of all characters and spaces
  849.  within the active window to that specified.  See the SHOW command for
  850.  attribute values.
  851.  
  852.  HIDEWIN can then be used to restore the window to its normal attributes.
  853.  There must never be any screen reading commands (WAITFOR, WAITSCR, SEARCH,
  854.  READ and LOCATE) executed between the SHOWIN and its associated HIDEWIN.
  855.  
  856.  
  857.  Example:
  858.    
  859.     WINCOLS 10 30
  860.     WINROWS 12 22
  861.     SHOWIN
  862.     PAUSE
  863.     HIDEWIN
  864.  
  865.  
  866. 4.1.23 TICK n
  867.  
  868.  Pauses execution of subsequent script commands until the specified number
  869.  of system clock ticks (18.2 per second) have elapsed.
  870.  
  871.  Example: TICK 12
  872.  
  873.  
  874. 4.1.24 TIME hhmmss
  875.  
  876.  Pauses execution of subsequent script commands until the specified time of
  877.  day.  The time must be specified in 24-hour format.  If the time has
  878.  already passed when the TIME command is processed, processing is suspended
  879.  until the next time the specified time of day occurs.
  880.  
  881.  Leading zeros are required if the hour, minute or second is less that two 
  882.  digits.  For instance two minutes after one in the morning is entered as 
  883.  010200.
  884.  
  885.  Note- The real time clock (set by the DOS TIME command in AT and later 
  886.  machines using DOS 3.x or later) and the system timer (which EXC uses) are 
  887.  not always in synch to the second.  There may be a few seconds variation.
  888.  
  889.  Example: 
  890.  
  891.   ; At 1:15 PM, set off an alarm that can be shut off with LEFT SHIFT-RIGHT
  892.   ; SHIFT
  893.  
  894.     TIME 131500
  895.  
  896.   :Loop
  897.     BEEP
  898.     GOTO Loop
  899.  
  900.  
  901. 4.1.25 TIMEOUT label
  902.  
  903.  When the timeout limit specified by SETWAIT expires while waiting for a
  904.  WAITSCR, WAITFOR or LOCATE, TIMEOUT processing is invoked.  Timeout 
  905.  processing is as follows:
  906.  
  907.  If no TIMEOUT command has yet been issued in the script, processing of the 
  908.  script is halted at this point.  Otherwise, the control will pass to the 
  909.  command following the label specified in the last TIMEOUT command 
  910.  encountered.
  911.  
  912.  Example:
  913.  
  914.    SETWAIT 20
  915.    TIMEOUT TimedOut
  916.    SHOWAT 17 25
  917.    WINCOLS 20 40
  918.    WINROWS 15 22
  919.    CASE ON
  920.    
  921.    WAITFOR "XYZ"
  922.    SH0W 79 "Found XYZ in window."
  923.    QUIT
  924.  
  925. :TimedOut
  926.    SH0W 79 "Timed out waiting for XYZ to appear in window."
  927.    WINMAX
  928.    CASE OFF
  929.    .
  930.    .
  931.    .
  932.  
  933.  
  934. 4.1.26 TYPE "string"
  935.  
  936.  The string following the TYPE command contains ASCII characters to be placed
  937.  in the keyboard buffer.  ASCII character are those with a decimal equivalent
  938.  of 0-127.  Do not use high-bit characters (graphics characters, foreign
  939.  language characters and most symbols) that range from 128-255 in their
  940.  decimal equivalents.  These characters hove no valid keycode associated
  941.  with them.  To enter special keys such as function keys, ENTER, ESC, etc.,
  942.  use the KEY command followed by the required mnemonic.  You cannot enter
  943.  these mnemonics with the TYPE command.  The string must be enclosed in
  944.  quotes.
  945.  
  946.  See ON for example.
  947.  
  948.  
  949. 4.1.27 TYPFILE filespec [mnemonic]
  950.  
  951.  TYPFILE allows you to type the contents of a file into the keyboard buffer.
  952.  The filespec is the filename with optional path information.  
  953.  
  954.  A possible use for this would be to feed an electronic mail message to a 
  955.  communications program.  Each line of the file is entered as is (no 
  956.  deletion of leading or trailing spaces, conversion of quotes, etc.).  
  957.  
  958.  If no mnemonic is specified, the carriage return/line feed characters at 
  959.  the end of each line are ignored by EXC, and nothing is entered in their 
  960.  place.  If a mnemonic is specified, carriage return/line feed pairs are 
  961.  converted to the key mnemonic specified.  For instance, if the file is
  962.  being copied into a word processor or editor that uses the ENTER key to
  963.  move to the next line, you may want to convert CR/LFs to <ENTER>.  If you
  964.  want the word processor to split the lines according to its margins, you
  965.  would not specify a mnemonic or you would specify <SPACE>.
  966.  
  967.  Specifying <SPACE> for the mnemonic will keep the last word on a line from 
  968.  running into the first word on the next line when the CR/LF is removed.
  969.  
  970.  All other key mnemonics are described under the KEY command.
  971.  
  972.  Since EXC only has a 256 byte extended keyboard buffer, it feeds a maximum 
  973.  of 80 bytes every clock tick into the extended buffer.  This should give 
  974.  time for the spawned program to read characters from the buffer and will 
  975.  usually prevent the buffer from overflowing.
  976.  
  977.  Please see the notes in section 3 regarding memory usage to determine the
  978.  effects on memory of using TYPFILE.
  979.  
  980.  
  981. 4.1.28 WAITFOR [NOT] "string"
  982.  
  983.  No further script file command will be processed until "string" appears on
  984.  the screen.  The entire screen will be searched for "string".  The string 
  985.  may be any valid screen characters.  If the string does not appear before 
  986.  the SETWAIT limit expires, TIMEOUT processing will be invoked. 
  987.  
  988.  If NOT is specified, processing will be halted until "string" is not on the
  989.  screen.  This is handy for waiting on a "Please wait.." type message to
  990.  disappear.
  991.  
  992.  Since WAITFOR reads the screen each 1/2 second, values that flash on the
  993.  screen for less than 1/2 second may not be detected.
  994.  
  995.  See TIMEOUT for example.
  996.  
  997.  WAITFOR NOT example:
  998.  
  999.    WAITFOR NOT "XYZ"
  1000.  
  1001.  
  1002. 4.1.29 WAITSCR
  1003.  
  1004.  Wait until there is any change to the screen before executing the next
  1005.  script command.  If there is no screen change before the SETWAIT limit
  1006.  expires, TIMEOUT processing will be invoked.
  1007.  
  1008.  
  1009. 4.1.30 WINCOLS start end
  1010.  
  1011.  Sometimes you may want to restrict your screen searches to a certain area
  1012.  of the screen.  WINCOLS allows you to specify what columns (far left = 1)
  1013.  you want read by all commands that read the screen (READ, SEARCH, WAITFOR,
  1014.  WAITSCR and LOCATE).  Specify the starting and ending columns inclusively.
  1015.  
  1016.  By combining WINCOLS with WINROWS, you can restrict reads to a selected
  1017.  box within the screen.  This is referred to as the active window.  Use 
  1018.  WINMAX to return the active window to the full screen.
  1019.  
  1020.  See TIMEOUT and SHOWIN for examples.
  1021.  
  1022.  
  1023. 4.1.31 WINMAX
  1024.  
  1025.  If you have restricted the active window with WINCOLS and/or WINROWS, you
  1026.  can return the active window to the full screen area by issuing a WINMAX
  1027.  command.  The size of the new active window will be determined by the 
  1028.  currently displayed columns and rows, but never exceeding the values
  1029.  specified in SCRMAX.
  1030.  
  1031.  See TIMEOUT for example.
  1032.  
  1033.  
  1034. 4.1.32 WINROWS start end
  1035.  
  1036.  Sometimes you may want to restrict your screen searches to a certain area
  1037.  of the screen.  WINROWS allows you to specify what rows (top = 1) you want 
  1038.  read by all commands that read the screen (READ, SEARCH, WAITFOR, WAITSCR 
  1039.  and LOCATE).  Specify the starting and ending rows inclusively.
  1040.  
  1041.  By combining WINCOLS with WINROWS, you can restrict reads to a selected
  1042.  box within the screen.  This is referred to as the active window.  Use 
  1043.  WINMAX to return the active window to the full screen.
  1044.  
  1045.  See TIMEOUT and SHOWIN for examples.
  1046.  
  1047.  
  1048. 4.2 Labels
  1049.  
  1050.  Labels can be up to 15 characters long and may contain letters, numbers,
  1051.  special characters or spaces.  They are treated as upper case regardless of
  1052.  how they are coded.  Duplicate labels are not allowed in the same script.
  1053.  END, end and End would all be considered duplicate labels.  If duplicate
  1054.  labels exist, all branches to the duplicate labels will go to the first
  1055.  one in the script.
  1056.  
  1057.  Labels must be immediately preceded by a colon (:) and placed on a line 
  1058.  which does not contain any commands.  
  1059.  
  1060.  labels are used as destinations for branching commands (TIMEOUT, GOTO, ON,
  1061.  IFY and IFN).
  1062.  
  1063.  It doesn't hurt a thing if you want to use labels for comments, but the 
  1064.  semicolon (;) remark is a better approach since there is no length 
  1065.  limitation on remarks and they will not be confused with labels that are 
  1066.  actual destinations.
  1067.  
  1068.  See TIMEOUT and ON for examples.
  1069.  
  1070.  
  1071. 4.3 Remarks
  1072.  
  1073.  Anything on a line for which the first non-blank character is a semicolon 
  1074.  (;) is treated as a comment line and is ignored by the script processor.
  1075.  
  1076.  
  1077. 4.4 Example Script
  1078.  
  1079.  The following example demonstrates the use of most of the more commonly used 
  1080.  commands.  Please note that the  QUIT statement after the End label is not 
  1081.  needed since the same action takes place when there are no more commands to 
  1082.  execute.
  1083.  
  1084.  Also please note that the SEARCH and IFN statements after the Loop label
  1085.  could more easily be accomplished with a WAITFOR command.  This just 
  1086.  demonstrates that looping logic is supported in scripts.
  1087.  
  1088.    SETWAIT 30
  1089.    TIMEOUT End
  1090.    CASE OFF
  1091.    WAITFOR "Entries"
  1092.    CASE ON
  1093.    TYPE "FO"
  1094.    WAITFOR "OPEN CATALOG"
  1095.    TYPE "E:\NOVLIB\"
  1096.    KEY <TAB>
  1097.    KEY <ESC>
  1098.    TYPE "NOVLIB.L11"
  1099.    KEY <CTL+ENTER>
  1100.    WAITSCR
  1101.  
  1102.  :Loop
  1103.    SEARCH "NOVLIB.L11"
  1104.    IFN Loop
  1105.  
  1106.    TYPE "SLADDNAEA"
  1107.    KEY <CTL+ENTER>
  1108.    DELAY 2;
  1109.    WAITFOR NOT "Sorting Index"
  1110.    TYPE "FS"
  1111.    KEY <CTL+ENTER>
  1112.    DELAY 2
  1113.    WAITFOR NOT "Please wait."
  1114.  
  1115.  :End   
  1116.    BEEP
  1117.    KEY <ALT+X>
  1118.    QUIT
  1119.  
  1120.  
  1121.  For a more comprehensive example, see the script file, TESTEXC.SCR.  Please
  1122.  read the comments before and after that script.
  1123.  
  1124.  
  1125.  
  1126. APPENDIX A
  1127.  
  1128. Installation
  1129.  
  1130.     EXC is distributed in a ZIP file called EXC.ZIP.  It contains the
  1131. following files:
  1132.  
  1133.         EXC.EXE         The executable file for EXC.
  1134.         EXC.DOC         The documentation file.
  1135.         HELP.TXT        Script command quick reference.  It is formatted as
  1136.                         script file comments so that it can be included in
  1137.                         you script for quick referencing.z
  1138.         TESTEXC.SCR     Example script used to test EXC functionality.
  1139.         TESTEXC.TXT     Text file for testing TYPFILE with TESTEXC.SCR.
  1140.         EXC.Vnn         Text description of updates in version nn.
  1141.         PRODUCTS.DOC    Description of other Parity Solutions products.
  1142.  
  1143.     For best results, unzip the file into a directory on your PATH.  If you
  1144. don't use a directory in your path, you will have to designate the directory
  1145. containing EXC.EXE when executing the program.
  1146.  
  1147.     If you have a utility directory that is on your PATH, this is an excellent
  1148. location for EXC.  An example installation would be:
  1149.  
  1150.     C:
  1151.     CD \UNTIL
  1152.     COPY [path]EXC.ZIP
  1153.     PKUNZIP EXC
  1154.     DEL EXC.ZIP
  1155.  
  1156.     The PKUNZIP program is by PKWARE, Inc. and is available in many CompuServe
  1157. forums under the file name of PKZ110.EXE.  Since you are reading this doc
  1158. files, you have obviously already managed to unZIP the distribution file.  If 
  1159. it is not currently in your path, simply copy all of the files to a directory 
  1160. in your path.  Keep the EXC.ZIP file anywhere you like, but give plenty of
  1161. copies, as is, to your friends.  If you register EXC, you are not licensed
  1162. to give your serial number to anybody without first removing the serialization
  1163. from your copy.
  1164.  
  1165.  
  1166.  
  1167.  
  1168. APPENDIX B
  1169.  
  1170.  
  1171. Keycode Table
  1172.  
  1173. Although you do not need to know these codes to write EXC scripts, the
  1174. following table does show you which combinations are defined and available
  1175. by using the appropriate mnemonics.  Do not try to use combinations which
  1176. indicate N/A in the table.
  1177.  
  1178.  Key             Norm        Shift       Ctrl        Alt
  1179.  ----            ----        -----       ----        ---
  1180.  A               1E61        1E41        1E01        1E00
  1181.  B               3062        3042        3002        3000
  1182.  C               2E63        2E42        2E03        2E00
  1183.  D               2064        2044        2004        2000
  1184.  E               1265        1245        1205        1200
  1185.  F               2166        2146        2106        2100
  1186.  G               2267        2247        2207        2200
  1187.  H               2368        2348        2308        2300
  1188.  I               1769        1749        1709        1700
  1189.  J               246A        244A        240A        2400
  1190.  K               256B        254B        250B        2500
  1191.  L               266C        264C        260C        2600
  1192.  M               326D        324D        320D        3200
  1193.  N               316E        314E        310E        3100
  1194.  O               186F        184F        180F        1800
  1195.  P               1970        1950        1910        1900
  1196.  Q               1071        1051        1011        1000
  1197.  R               1372        1352        1312        1300
  1198.  S               1F73        1F53        1F13        1F00
  1199.  T               1474        1454        1414        1400
  1200.  U               1675        1655        1615        1600
  1201.  V               2F76        2F56        2F16        2F00
  1202.  W               1177        1157        1117        1100
  1203.  X               2D78        2D58        2D18        2D00
  1204.  Y               1579        1559        1519        1500
  1205.  Z               2C7A        2C5A        2C1A        2C00
  1206.  1               0231        0221        N/A         7800
  1207.  2               0332        0340        0300        7900
  1208.  3               0433        0423        N/A         7A00
  1209.  4               0534        0524        N/A         7B00
  1210.  5               0635        0625        N/A         7C00
  1211.  6               0736        075E        071E        7D00
  1212.  7               0837        0826        N/A         7E00
  1213.  8               0938        092A        N/A         7F00
  1214.  9               0A39        0A28        N/A         8000
  1215.  0               0B30        0B29        N/A         8100
  1216.  ,               332C        333C        N/A         N/A
  1217.  .               342E        343E        N/A         N/A
  1218.  /               352F        353F        N/A         N/A
  1219.  ;               273B        273A        N/A         N/A
  1220.  '               2827        2822        N/A         N/A
  1221.  [               1A5B        1A7B        1A1B        N/A
  1222.  ]               1B5D        1B7D        1B1D        N/A
  1223.  `               2960        297E        N/A         N/A
  1224.  -               0C2D        0C5F        0C1F        8200
  1225.  =               0D3D        0D2B        N/A         8300
  1226.  \               2B5C        2B7C        2B1C        N/A
  1227.  F1              3B00        5400        5E00        6800
  1228.  F2              3C00        5500        5F00        6900
  1229.  F3              3D00        5600        6000        6A00
  1230.  F4              3E00        5700        6100        6B00
  1231.  F5              3F00        5800        6200        6C00
  1232.  F6              4000        5900        6300        6D00
  1233.  F7              4100        5A00        6400        6E00
  1234.  F8              4200        5B00        6500        6F00
  1235.  F9              4300        5C00        6600        7000
  1236.  F10             4400        5D00        6700        7100
  1237.  Enter           1C0D        1C0D        1C0A        N/A
  1238.  Ins             5200        5230        N/A         N/A
  1239.  Del             5300        532E        N/A         N/A
  1240.  Esc             011B        011B        011B        N/A
  1241.  Home            4700        4737        7700        N/A
  1242.  End             4F00        4F31        7500        N/A
  1243.  PgUp            4900        4939        8400        N/A
  1244.  PgDn            5100        5133        7600        N/A
  1245.  <Tab>           0F09        0F00        N/A         N/A
  1246.  <BackSpace>     0E08        0E08        0E7F        N/A
  1247.  <LeftArrow>     4B00        4B34        7300        N/A
  1248.  <RightArrow>    4D00        4D36        7400        N/A
  1249.  <UpArrow>       4800        4838        N/A         N/A
  1250.  <DownArrow>     5000        5032        N/A         N/A
  1251.  <Gray 5>        N/A         4C35        N/A         N/A
  1252.  <Gray *>        372A        N/A         7200        N/A
  1253.  <Gray ->        4A2D        4A2D        N/A         N/A
  1254.  <Gray +>        4E2B        4E2B        N/A         N/A
  1255.  <Space>         3920        N/A         N/A         N/A
  1256.  <F11>           8500        8700        8900        8B00
  1257.  <F12>           8600        8800        8A00        8C00
  1258.  
  1259.  In addition, the <PRTSC> (print screen) mnemonic can be used in EXC to
  1260. cause a screen print.  The <PRTSC> cannot be placed in the keyboard buffer
  1261. since it does not have a key code.  KEY <PRTSC> is executed immediately.
  1262.  
  1263.  
  1264.  
  1265.  
  1266. APPENDIX C
  1267.  
  1268.  
  1269. Disclaimer
  1270.  
  1271. BECAUSE OF THE DIVERSE NATURE OF COMPUTER EQUIPMENT AND EXPERTISE OF USERS,
  1272. PARITY SOLUTIONS AND GARY C. CRIDER MAKE NO WARRANTY ON THE EXC PROGRAM
  1273. WHATSOEVER, EXPRESS OR IMPLIED.  THE USER ASSUMES ALL RISK OF DAMAGE TO
  1274. DATA OR EQUIPMENT RESULTING DIRECTLY OR INDIRECTLY FROM THE USE OR MISUSE OF
  1275. THIS PROGRAM PRODUCT.
  1276.  
  1277. USERS ARE ADVISED TO TEST PROGRAMS AND SCRIPTS THOROUGHLY ON DATA FOR WHICH A
  1278. BACKUP EXITS.  ANY LIABILITY OF THE AUTHOR OR PARITY SOLUTIONS IS LIMITED TO
  1279. REPLACEMENT OR REFUND OF THE REGISTRATION FEE.
  1280.  
  1281.  
  1282.  
  1283.  
  1284. APPENDIX D
  1285.  
  1286.  
  1287. Support
  1288.  
  1289.     I have tried to test the program to the fullest, but I am limited as to
  1290. systems and configurations with which to test.  I have been programming for 18
  1291. years and the one thing I know for sure is that bug free programs are very few
  1292. and far between.  I can only promise to support the program to the best of my
  1293. ability and provide fixes as expeditiously as possible.
  1294.  
  1295.     Anyone can report problems and suggest changes.  Registered users get top
  1296. priority in resolving their problems.  There are three ways you can report
  1297. problems.  The preferred method is to contact me through CIS mail (not forum
  1298. messages).  My CIS ID is 71760,3413.  You can also write me at:
  1299.  
  1300.    Gary C. Crider
  1301.    Parity Solutions
  1302.    1105 Burgess Court
  1303.    Arlington, TX 76015
  1304.  
  1305.     The last method is to phone (817) 467-7818.  Since I am the sole technical
  1306. support and the line is also used for my network consulting business, it is
  1307. often hard to get through to me.  Please call and leave a message between 7:30
  1308. am and 5:30 pm Central time.
  1309.  
  1310.     No matter which method you use, please give a brief description of your
  1311. problem, your registration serial number if you are registered, and your phone
  1312. number.  If I need more information, I will contact you as soon as I can.
  1313. When I have a solution, I will contact you however you prefer.  Never post
  1314. your serial number on forum messages.  CIS mail is OK.  I seldom read forum
  1315. messages and they are not private.
  1316.  
  1317.     I work full time, have a consulting business to run in my spare time and
  1318. write programs instead of sleeping.  So please be a little patient with me.
  1319.  
  1320.     To keep prices this low, new releases are posted on CompuServe in the 
  1321. NOVLIB, IBMSYS and ZENITH forums, and on ZiffNet in the PBS forum.
  1322.  
  1323.                  
  1324. APPENDIX E
  1325.  
  1326.  
  1327. Registration
  1328.  
  1329.  
  1330.     I begin with an apology.  I hate programs that in any way inhibit func-
  1331. tionality or performance for the shareware version.  But when it came down to
  1332. feeding the family and paying the bills, I had a change of heart and inserted
  1333. a pesky notice that pops up at the beginning and gets on your nerves.  I
  1334. chose this approach above that of limited functionality.  The program's full
  1335. capabilities are available for you to evaluate before you invest your hard-
  1336. earned money.
  1337.  
  1338.     Registered users will receive a unique serial number and instructions on
  1339. how to serialize the program.  Serialization can be re-applied to updated
  1340. versions and in no way hinders your use of the program.  You can compress or
  1341. decompress the program with no effect (LZEXE or PKLITE).  I use Fabrice
  1342. Bellard's LZEXE program on EXC.EXE before distribution.
  1343.  
  1344.     As a registered user, you will be able to update without re-registration
  1345. or additional fees.  You will also be kept on my PRIVATE mailing list to
  1346. receive additional information on other Parity Solutions products.  Registered 
  1347. users will be entitled to a discount on any present or future Parity Solutions
  1348. software.
  1349.  
  1350.     To register your copy, please send $20 US ($80 per file server on LANS) 
  1351. check or money order (sorry, no credit cards yet) to:
  1352.  
  1353.    Gary C. Crider
  1354.    Parity Solutions
  1355.    1105 Burgess Court
  1356.    Arlington, TX 76015
  1357.  
  1358.     International orders outside the U.S. postal system, Canada and Mexico 
  1359. add $1 return postage for each order, regardless of the number of licenses 
  1360. ordered. 
  1361.  
  1362.     Each license gives you or your company a single use permit for EXC.  It is 
  1363. not restricted to a single machine as long as no two users can be simul-
  1364. taneously using the program.  As Borland says, "treat it like a book."  As an 
  1365. example, if you register EXC for your home computer, but during the day you 
  1366. use a portable or a computer at work,  you may keep EXC on both machines as 
  1367. long as no one is at home using it on your home computer.
  1368.  
  1369.     LAN licenses grant rights to all workstations on the same physical LAN.  If 
  1370. internetworking, a license must exist for each file server that contains a 
  1371. copy of EXC.EXE.  If two or more file servers exist on a single LAN strictly 
  1372. for mirroring data and fault-tolerance, these will be counted as a single 
  1373. file server for licensing purposes.  If in doubt, contact me.  We can work 
  1374. out an agreement.
  1375.  
  1376.     Site licensing is also available on a negotiated price basis.  I guarantee
  1377. it will be an economical alternative to buying licenses for each user.
  1378.  
  1379.     You may freely distribute the original EXC.ZIP file in any way you see
  1380. fit other than selling it.  Users' groups and shareware distribution services
  1381. may charge a reasonable fee for the medium and duplication costs.  Bulletin 
  1382. boards may not charge additional fees for downloading this specific program, 
  1383. other than normal connect-time and/or membership charges.
  1384.  
  1385.     You are NOT licensed to give anyone your serial number unless you first
  1386. remove all serialization from your computer.  You may then no longer use that
  1387. serial number.  Only Parity Solutions has the authority to issue serial
  1388. numbers.
  1389.