home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / busi / slmlrd20.zip / KEYFAKE.DOC < prev    next >
Text File  |  1989-06-08  |  4KB  |  78 lines

  1.  
  2.           KEY-FAKE  v1.1                         Charles Petzold
  3.           Command                       PC Magazine Vol 4, No 26
  4.          Copyright 1985 Ziff-Davis Publishing Company
  5.           ______________________________________________________
  6.  
  7.           Purpose:  Supplies the series of keystrokes needed to
  8.                     initialize an application program on boot-up.
  9.  
  10.           Format:   KEY-FAKE ["xyz"] [nn] [0] [@F]
  11.                     Programname
  12.  
  13.                     Characters typed within a pair of single or
  14.                     double quotes ("xyz") are normal ASCII-
  15.                     character keystrokes.  Numbers (nn) not in
  16.                     quote marks are ASCII decimal codes, e.g., 13
  17.                     (Enter), 26 (Ctrl-Z), or 27 (Esc).  Numbers
  18.                     preceded by @ are the extended ASCII decimal
  19.                     codes (128 through 255) generated by the Alt
  20.                     keys, cursor keys, Ins and Del keys, and the
  21.                     Function keys (e.g., @61 is the F3
  22.                     keystroke).  The 0 is used with programs that
  23.                     check the keyboard buffer (it tells such
  24.                     programs the buffer is clear, so the programs
  25.                     will treat the succeeding keystroke
  26.                     separately).
  27.  
  28.           Remarks:  KEY-FAKE is of greatest use in batch files
  29.                     used to call up application programs.  For
  30.                     example, to enter Lotus's 1-2-3 and set it
  31.                     for File Retrieve, the following .BAT file
  32.                     would be appropriate:
  33.  
  34.                     CD \LOTUS
  35.                     KEY-FAKE 0 13 0 13 0 13 0 13 0 13 "/FR"
  36.                     LOTUS
  37.  
  38.                     This takes you past the necessary initial
  39.                     carriage returns and /FR command without
  40.                     having to type them in each time.
  41.  
  42.                     Similarly, if each time you enter BASICA you
  43.                     want to have a blue border, blue background,
  44.                     and yellow letters, you would create a batch
  45.                     file, B.BAT, containing the lines
  46.  
  47.                     KEY-FAKE "COLOR 14,1,1" 13 "CLS" 13
  48.                     BASICA
  49.  
  50.                     Notes:
  51.  
  52.                     1.   The keystroke sequence stored by KEY-
  53.                          FAKE is limited to 124 characters and
  54.                          must be on one continuous command line.
  55.                          Keystrokes not supported by PC BIOS
  56.                          (e.g., Alt-Home) cannot be stored.
  57.  
  58.                     2.   Programs such as XyWrite II that get
  59.                          keyboard information directly from the
  60.                          hardware keyboard interrupt will bypass
  61.                          KEY-FAKE.  KEY-FAKE will also not work
  62.                          well when you are on-line using a
  63.                          communications program.
  64.  
  65.                     3.   KEY-FAKE is memory resident, but can be
  66.                          executed multiple times in the same
  67.                          session without reloading.  However, if
  68.                          nested batch files cause it to be re-
  69.                          invoked before its initially stored
  70.                          keystroke sequence has been exhausted,
  71.                          the remaining initial keystrokes will be
  72.                          lost.
  73.  
  74.           Revision: Modified 6-8-89 to handle the new Extended
  75.                     101/102 key keyboard BIOS support.  (Tim Farley)
  76.  
  77.  
  78.