home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Der Mediaplex Sampler - Die 6 von Plex
/
6_v_plex.zip
/
6_v_plex
/
DISK5
/
DOS_34
/
AMAC44.ZIP
/
MIS006.QM
< prev
next >
Wrap
Text File
|
1992-02-17
|
5KB
|
118 lines
* mis006.qm
* Miscellaneous Other New Macros
* Written By Tom Hogshead
* [ See MISCxx.QM For Use ]
* 2/17/92
* Key Subfile Description
* ===== ========= =================================================
* @(3) Test True/False for WhiteSpace and non-WhiteSpace |new
* @(f5) {e:\up\MACR*} Test True/False Results, Tim Farley, Author
* #(F5) Always Append with Pause
* #(F6) Always Append with Pause, Best in Macros
* #(F7) Always Overwrite, File Name Specified
* #(F8) Always Overwrite with Pause
* @(2) Remove Colons in File After jump/jt../jf.. Labels
* #(F10) RepeatFind to View Colons After #F9
*
* {e:\up\MISC*} Return To MISCxx.QM
*
*-- eoi
* M A C R O S
* ----------------------------------------------------------------------
* @(3) Test True/False for WhiteSpace and non-WhiteSpace, v2.15 Reqd.
* ----------------------------------------------------------------------
* This macro will test true if character under cursor is a white space
* and false otherwise. Invoke the macro with the cursor at the test
* point, the <enter> to terminate. ".T." inidicate "true", etc. This
* macro was written at the request of Rajan Datta on SemWare ILINK
* Conference 21, 12/27/91.
@3 macrobegin
splitline #173 cursordown begline
firstnonwhite jtrue TRUE
find ".F." pause escape jump FALSE
TRUE: find ".T." pause escape
FALSE: cursorup endline cursorleft delch joinline *|
*
* 38 bytes Fri 12-27-1991 17:49:29 (TH @3, to RD #21/4815)
* 39 bytes Fri 12-27-1991 22:53:50 (TH @3, ok for insert off)
*
* ----------------------------------------------------------------------
* #(F5) Always Append with Pause
* ----------------------------------------------------------------------
* Change Endline to Begline to always overwrite. This macro is a
* modification to a similar macro in MACROS.TXT v2.15 documentation.
#F5 MacroBegin
CursorRight CursorLeft
WriteBlock DelLine Pause Return
EndLine PrevPosition
* 12 bytes Sun 10-20-1991 15:34:23 (TH #F5)
*
* ----------------------------------------------------------------------
* #(F6) Always Append with Pause, Best For Macros
* ----------------------------------------------------------------------
#F6 MacroBegin
endline cursorright
WriteBlock DelLine Pause Return "A"
backspace begline
* 14 bytes Sun 10-20-1991 15:34:28 (TH #F6)
*
* ----------------------------------------------------------------------
* #(F7) Always Overwrite, File Name Specified, Best in macro
* ----------------------------------------------------------------------
* Change "O" to "A" to always append.
#F7 MacroBegin
endline cursorright writeblock Pause return "o" backspace begline
* 13 bytes Fri 11-15-1991 22:52:36 (TH #F7)
*
* ----------------------------------------------------------------------
* #(F8) Always Overwrite with Pause, Best CurrentFilename w/Pause
* ----------------------------------------------------------------------
* Change Begline to Endline to always append. Insert is Off after execution .
#F8 MacroBegin
SetInsMode ToggleInsert
CursorRight CursorLeft
WriteBlock CurrentFileName Pause Return
BegLine PrevPosition
* 14 bytes Sat 10-26-1991 17:17:26 (TH #F8)
*
* ----------------------------------------------------------------------
* @(2) Remove All Colons in File After Jump/Jtrue/jfalse Labels,
* For Next Major QEdit Release
* ----------------------------------------------------------------------
* This macro requires QEdit v2.15.
@2 macrobegin
setscreenoff begfile
* -------- Find jtrue, jfalse and jump with colon after label --------*
AGAIN: find " j" return "I" return jfalse NOMOR
wordright wordright isendline jfalse NEXT wordright
NEXT: markword gotoblockend markcolumn
* --------------------- Remove colon after label ---------------------*
findreplace ":" return " " return "GLN" return
wordleft wordleft cursorleft jump AGAIN
NOMOR:
* ------- Check to see if colons were removed, requires FGREP -------*
savefile editfile "c:!" return quit gotoblockbeg begfile unmarkblock
DOS 'FGREP / j/>c' ':! ' currentfilename return return
editfile return cursordown Find ":" return delline return
setscreenon Pause killfile prevfile
*
* 108 bytes Wed 11-13-1991 10:31:45 (TH @2)
*
* ----------------------------------------------------------------------
* #(F10) RepeatFind to View Colons After #F9
* ----------------------------------------------------------------------
#F10 repeatfind