home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 September / Simtel20_Sept92.cdr / msdos / qedit / qascii.arc / QASCII.QM < prev   
Text File  |  1989-08-28  |  2KB  |  50 lines

  1. *
  2. * QASCII.QM  --  QEdit macros to implement an ASCII chart in QEdit 2.08
  3. *
  4. * Author:  Tim Farley
  5. * Date:    28-Aug-1989
  6. *
  7. * INSTRUCTIONS:  Convert this file to a QEdit loadable macro file with QMAC:
  8. *
  9. *                QMAC QASCII.MAC QASCII.QM B N
  10. *
  11. *
  12. * NOTES:   (1) The QASCII.LST file can be free form, but it should have
  13. *              ONE ascii character per line, and the character itself should
  14. *              appear between parentheses, like this: (*).  The rest of the
  15. *              line can contain anything you like: other representations of
  16. *              that character, numeric conversions, etc.
  17. *          (2) In the macros below, be sure to edit 'QASCII.LST' to reflect
  18. *              the full path specification to your ASCII chart on your disk.
  19. *          (3) You could add both of these to your QCONFIG.DAT file.  This
  20. *              would make them a permanent part of your Q.EXE, always at
  21. *              the ready.
  22. *          (4) You might want to mark your ASCII chart read-only in DOS to
  23. *              prevent accidentally editing it while using these macros.
  24. *
  25. *
  26. * Control-F2 will bring up the QASCII.LST file in a window below the current
  27. *            one, with the current character highlighted.
  28. *
  29. ^f2  MacroBegin UnMarkBlock DropAnchor DropAnchor Copy DropAnchor DropAnchor HorizontalWindow EditFile 'QASCII.LST' Return BegFile BegLine Find '(' Paste ')' Return ' ' Return CursorRight MakeCtrOfScreen
  30.  
  31. *
  32. *
  33. * Control-F3 is a variation:  it will bring the description of the character
  34. *            under the cursor up onto the screen in a "box" near the cursor
  35. *            line.  The user can press Return or Escape to continue editing.
  36. *
  37. ^f3  MacroBegin UnMarkBlock DropAnchor Copy HorizontalWindow EditFile 'QASCII.LST' Return BegFile BegLine Find '(' Paste ')' Return ' ' Return BegLine CursorRight DropAnchor GotoColumn '61' Return Copy CloseWindow Find Paste Pause Escape
  38.  
  39. *
  40. *
  41. * Control-F4 is the reverse:  bring up the ASCII chart, move the cursor to
  42. *            the character you want, press RETURN, and that character will
  43. *            be inserted into the original file.  The user can also press
  44. *            Escape to abort.
  45. *
  46. ^f4  MacroBegin HorizontalWindow EditFile 'QASCII.LST' Return GotoLine '6' Return GotoColumn '24' Return Pause GotoColumn '24' Return UnMarkBlock DropAnchor Copy CloseWindow Paste UnMarkBlock CursorRight
  47.  
  48. *
  49. * EOF: QASCII.QM
  50.