* MacroMaker MACR31.QM, v3.1b * Written by Tom Hogshead * With Macro Contributions By Tim Farley * August 4, 1991 * * @(2) - Refresh Macro Buffer With "Standard" Macfile * @(3) - Merges Designated Txtfile With Current Macros, Reads Macfile * @(4) - Appends Txtfile To Standard Txtfile & Macfile, Reads Macfile * @(5) - Gets Error File In Window * @(6) - Makes Dummy Txtfile From Current Macros * @(7) - Makes & Reads Dummy Macfile From Txtfile * @(t) - Makes & Reads Dummy Macfile From Txtfile, SMALL * @(8) - Reads Macfile of Current Txtfile * @(9) - Makes Macfile of Current Txtfile, No Macfile Read * @(0) - Makes & Reads Macfile of Txtfile, With Error Window * @(q) - Makes & Reads Macfile of Txtfile, SMALL * @(f1)- Makes Single Column Macro * @(f2)- Puts Command Key Beside A Single Command In A Macro * @(f3)- Puts Command Key Beside ALL Commands In A Macro * @(f4)- Gets A Single Command And It's Key On Screen * @(f5)- Test TRUE/FALSE Results, Tim Farley, Author * @(h) - Select Index Item With Cursor Line, Then |chg * * (Index) Use - How to locate macro or item from Index using @h * (Description) - MacroMaker Macros * (Requirements) - and use * (Startup) - See MACR.DOC for startup instructions * (Macros) - MacroMaker Macros * (Other) Macros - not included * (Version) history * *-- eoi * (Index) Use; * * To locate a macro or item in this file, press @h, place the cursor * line on the desired item in the Index above, and press . * See BOOKxx.QM for more details. * (Description): * (MacroMaker) MACR31.ZIP Contains QEdit macros to easily convert * macros to & from text/binary (txtfile/macfile) using QMAC macro * translator. * See RFRMxx.QM for other commenting and un-commenting macros. * (Requirements) and Use (see MACR.DOC for (startup) instructions): * * 1. Txtfile name extension MUST be [file].QM, Macfile [file].MAC. * 2. Change ram disk c:\ (also in batch files) for your setup. * Ram disk is optional but faster than a hard drive. Use any * active drive letter to replace c:\. * 3. Batch files must be in path or current directory. INSERT must * be ON. Run macros and press Enter to continue when paused. * 4. Modify "e:\qe\MACROS.xxx" in macros to your "standard" macro. * Be careful to use or not use extension as shown, with spaces. * 5. Be sure to change "e:\qe\qconfig.dat" in the macros @f2 - * @f4 below to the location of your qconfig.dat in your * setup, and convert with QMAC. * In order for macros @f2 - @f4 to find a command in QCONFIG.DAT, there * must be at least eight blank spaces betweeen the end of the command * key and the beginning of the command. If your QCONFIG.DAT has fewer * spaces, the macros must be modified in the first 'FIND' line. * Insert must be ON. * Replacing C:\ with a ram drive will make the macros run considerably * faster. * These macros require "QEdit and QMAC v2.1, February, 1990" or later. * To BEGIN, just type "START MACR" . All pertinent files will be * loaded in the "Ring" for viewing, and MACR31.MAC is read. * Alternatively, type "START MACR 0" and the disk copies of all * files in the "Ring" will be loaded ready for editing, saving time. *  *旼컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴� *� @(2) Refreshes macro buffer with "standard" macfile � *읕컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴� * Remember you MUST modify "e:\qe\macros.mac" with your "standard" macfile. * @2 MacroBegin MacroRead "e:\qe\macros.mac" *<<<< * app * * You should see the following highlighted on your screeen: * ^b_a appendscrbuff * Entering "b" instead shows all commands beginning with "b": * ^h backspace * ^home begscreen * ^pgup begfile * home begline * backspace backspace *(note, at least 8 spaces required) * Press 'Enter' to remove the command(s) and it's key from the screen, * or press 'Esc' three times if you want to keep the command(s) on the * screen for reference. @f4 macrobegin unmarkblock insertline begline * insert temp line dropanchor currentfilename * cut * delete temp line editfile * "e:\qe\qconfig.dat" *<<<<I'd suggest that when you need to know what a command returns, * KB>and it appears not to return what you expect, that you write a * KB>test macro which prints TRUE or FALSE according to the return, * KB>and experiment with it. * * Surprising as it may seem (since I obviously have inside * knowledge of the editor), I do just this myself! It's quicker * for one thing.... * * Here is the macro I use: * * (TH changed key from ^F10 to @F5) @F5 MacroBegin JTrue true: Find ".F." Pause Escape Jump end: true: Find ".T." Pause Escape end: * * 28 bytes Mon 07-30-1990 19:58:27 (TH added) * Just re-wrap this to fit on one line, then put it in your * QCONFIG.DAT. * * Then, when you want to test a command, RECORD a macro that starts * with the command you wish to test, then this macro. For * instance, if I wanted to test BegLine , I would do this: * * (1) Press MacroRecord * (2) Press the key to record. (I use usually). * (3) Press the key to test, BegLine . * (4) Press the above macro, * (5) End macro recording . * * Now I can just move my cursor around, and hit , to test * the true/false result of BegLine at different positions. The * true or false comes up in a nice little box on the screen, and * when I press Return the box sends itself away, and does not * damage the file I am editing or anything. * * Note if you run the above macro by itself, it always * returns TRUE. QEdit does not remember the True/False state of * the last command while "idle". Thus the necessity of recording * the above within a macro. * * --Tim Farley * SemWare Technical Support * (Other) Macros available: See ALLMACRO.INF. * See RFRMxx.QM for other commenting and un-commenting macros. * (Version) History: * * 1.0 - initial version * 1.1 - Changed Alt-6 to keep [file].qm in ring after running. * 1.2 - Date & time stamp put in dum.qm (Alt-6, Alt-7). * 1.3 - Added batch files to macro13.ZIP. * 1.4 - Changed Alt-6 & 7 to stamp [file].QM translated from. * - Changed Alt-0 to not pause if no errors. * - Added Alt-5 to see error files in window. * - Changed /W60 to /W70 and removed "pause" in qmact.bat. * 1.5 - Changed Alt-7 to not pause if no errors. * 1.6 - Shortened Alt-6, 7 & 10. Faster & no pause now if no errors. * 1.7 - Corrected Alt-6 to write macros first. Sorry. * 1.8 - Added Alt-4 to append text file [file].qm macros * to a "standard" macro and read appended macro. * 1.9 - Added Alt-3 to merge designated macro [file].mac * with current macros. QEdit normally overwrites * current macros when reading a new macro. * 2.0 - Added Alt-2 to refresh macro buffer with "standard" macro. * - New qmacTA2.bat for Alt-4, gets "standard" name as %2. * - Added Alt T & Alt N to select txtfile to read from * sorted list of all avaialable txtfiles in directory. * - New SORT-T.BAT and SORT-F.BAT for Alt T & N to sort macro list. * - Changed Alt-4 to identify "standard" rather than batch file. * (Modify g:\qe\macros for the name of your "standard" macro.) * - Shortened Alt-3,7 & 0, total 91 bytes. (Important when merging * since QEdit macro buffer is limited to 2046 bytes macros.) * - Moved macroread to end of Alt-3. No problem, just in case. * (Reading macros while executing can sometimes cause problems.) * - Changed Alt-5 to refresh c:!. * 2.1 - (Internal) * 2.2 - Added Alt-1 to select txtfile to load from list of all txtfiles * in directory sorted by Name. Added sort-N2.bat for this macro. * - Changed Alt T & Alt N to select macfile, not txtfile as v2.0, * from sorted list of all available macfiles in directory. * - Changed sort-T.bat, sort-N.bat and sort-N1.bat for macr s. * - Renamed MACCMTxx to MACROxx. Dropped MACCMTxx. Macros comments * and instructions are now are in MACROxx.qm. * - Shortened highlight bar in Alt N,t. Saves ~30 bytes/macro. * - Changed dum.dir to $ in Alt-4 & qmacTA2.bat to shorten * - Added killfile to Alt-3 & 4. Changed endfile display in Alt-4. * - Replaced "j:\j" with "c:!" in macros and batch files to shorten. * - Changed qmacTA2.bat for better display. * - Changed select window from "c:!" to "c:$" in batch files * - Sort batch files (sort-xx.bat) also changed. * 2.3 - Changed @5 to keep error file c:! in ring. * - By removing " "'s, changing file name tracking in buffers, * and shortening header and footer labels: * - shortened @4 28 bytes * - shortened @5 5 " * - shortened @6 67 " * - shortened @7 24 " * - shortened @9 3 " * - Added macro size 'bytes line' at end of each macro * 2.4 - Removed dum.qm and dum.mac from zip package * - Shortened Alt_6 from 147 to 54 bytes * - Shortened Alt_7 from 258 to 194 bytes * 2.4a - Modified @6 and description * 2.4b - Modified documentation. * 2.4c - Changed file name from MACROxx to MACRxx. * 2.5 - Changed j:j to c:! in macros and batch files. * - Changed down arrow #25 to ! in ^0. * - Changed .LST and .QL files. * - Removed @1, @t and @n. Newer macros to do the same thing * are in FILExx.ZIP. * 2.6 - Added @t, smaller faster version of @7. * - Added @q, smaller faster version of @0. * - Added @f1, @f2, @f3 and @f4 from GETCxx.ZIP and COLxx.ZIP, * which are no longer included as seperate files, but are now * a part of MACRxx.ZIP. * - Modified and shortened all but @2, @6, @8, @9 and ^1. * - Added killfile to @6 so writeblock return works correctly. * 2.6a - Changed ^1 help macro key to @h key. * 2.7 - Removed [d:]\[path] for location of QMAC from QMACxxx batch * files. QMAC can be located anyw뷷re in path. * 2.7a - Modified documentation and added START.BAT. * - Change MACRO file names to MACR. * 2.7b - Corrected @h Index Use instructions. * 2.8 - Changed 4 to 8 spaces in Find for @f2 - @f4 to correctly * find command and key. * 2.9 - Corrected @f4 which had a missing return. * 3.0 - Modified @F4 to stop on failed searches. * 3.1 - Modified @3, @4, @7 and @0, also with more comments. * - Added @F5 written by Tim Farley. * - Removed unnecessary c:$.qm from @7. * 3.1a - Changed documentation. * - Included v3.1a in AMAC39.ZIP, July 21, 1991. * 3.1b - Corrected @F5 documentation, key references were wrong. 7/30/91 * - Added latest version of @h from BOOKxx.QM. 7/31/91 * - MACR.DOC had old f:\. Corrected to e:\. 7/31/91 * * * * error_sample, remove asterisk to test for errors