home *** CD-ROM | disk | FTP | other *** search
/ Share Gallery 1 / share_gal_1.zip / share_gal_1 / LA / LA021.ZIP / QASCII.QM < prev    next >
Text File  |  1990-02-27  |  3KB  |  57 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. *                Then load QASCII.MAC into QEdit using MacroRead or /L, and
  12. *                use the keys as indicated below.
  13. *
  14. *
  15. * NOTES:   (1) The QASCII.LST file can be free form, but it should have
  16. *              ONE ascii character per line, and the character itself should
  17. *              appear between parentheses, like this: (*).  The rest of the
  18. *              line can contain anything you like: other representations of
  19. *              that character, numeric conversions, etc.
  20. *          (2) In the macros below, be sure to edit 'QASCII.LST' to reflect
  21. *              the full path specification to your ASCII chart on your disk.
  22. *          (3) You could add both of these to your QCONFIG.DAT file.  This
  23. *              would make them a permanent part of your Q.EXE, always at
  24. *              the ready.
  25. *          (4) You might want to mark your ASCII chart read-only in DOS to
  26. *              prevent accidentally editing it while using these macros.
  27. *          (5) These macros absolutely require QEdit 2.08 (or QEdit for OS/2)
  28. *              to operate correctly.
  29. *
  30. *
  31. * Control-F2 will bring up the QASCII.LST file in a window below the current
  32. *            one, with the current character highlighted.
  33. *
  34. ^f2 MacroBegin UnMarkBlock DropAnchor DropAnchor Copy DropAnchor DropAnchor HorizontalWindow EditFile BegLine DelToEol 'QASCII.LST' Return BegFile BegLine Find '(' Paste ')' Return ' ' Return CursorRight DropAnchor MakeCtrOfScreen PrevWindow
  35.  
  36. *
  37. *
  38. * Control-F3 is a variation:  it will bring the description of the character
  39. *            under the cursor up onto the screen in a "box" near the cursor
  40. *            line.  The user can press Return or Escape to continue editing.
  41. *
  42. * NOTE:  This macro is near maximum length for QCONFIG.  Take care editing it.
  43. *
  44. ^f3 MacroBegin UnMarkBlock DropAnchor Copy HorizontalWindow EditFile BegLine DelToEol 'QASCII.LST' Return BegFile BegLine Find '(' Paste ')' Return ' ' Return BegLine CursorRight DropAnchor GotoColumn '61' Return Copy CloseWindow Find Paste Pause Escape
  45.  
  46. *
  47. *
  48. * Control-F4 is the reverse:  bring up the ASCII chart, move the cursor to
  49. *            the character you want, press RETURN, and that character will
  50. *            be inserted into the original file.  The user can also press
  51. *            Escape to abort.
  52. *
  53. ^f4 MacroBegin HorizontalWindow EditFile BegLine DelToEol 'QASCII.LST' Return GotoLine '6' Return GotoColumn '24' Return Pause GotoColumn '24' Return UnMarkBlock DropAnchor Copy CloseWindow Paste UnMarkBlock CursorRight
  54.  
  55. *
  56. * EOF: QASCII.QM
  57.