// EXA-UMM.VDM par 2004/04/02 // // Example To User-Menu-Macro. // Macro to convert a vpwhlp.hlp example macro or a vp600.pdf example // macro into a {USER} menu macro. That is to say, replace "( )" by "()" // and write the resulting macro on a single line. // // Last change: 2004/06/05 // // USAGE: 1.: Mark and copy the example macro, from the .hlp/.pdf file to the // Windows Clipboard. Make sure that only the macro part is marked. // ( In a .pdf file: "To select a column of text (vertically), hold down // Ctrl+Alt as you drag the length of the document." ) // (It is not clear to me how to "set columar markers" in a .hlp file.) // (Since this is routine in Vedit it might be prefable to do it in Vedit!) 2.: Open a new Vedit file and insert the clipboard. // 3.: Inspect the resulting macro and make sure that it does not contain // foreign segments; like explanations from the same line. // 4.: Apply the EXA-UMM.VDM macro to it. // // // Requires: VEDIT 5.00 or later. // (Because it is based on the TXT-WORD.VDM macro.) // Furthermore, to excute the resulting macro in command mode // via the Ctrl-V key stroke, VEDIT 5.20 or later is needed. // (Because the extension of Ctrl-V to the command mode prompt was // done in VEDIT 5.20.) // // From VEDIT: Accessed via the default {USER} menu. // // Note: The Vedit installation program already created an "examples" // subdirectory of the Vedit Home directory. This is a good place // to save the converted example macro. // Begin_Of_File Replace("( )","()",ALL+NOERR) #10=Reg_Free Call_File(#10,"|(MACRO)\txt-word.vdm") // //---------------------------------------------------------------------------------------------- // Additional Notes: // // 1.: This macro accomplishes two tasks in one. Specifically it converts an example macro // into a User-Menu_Menu macro and launches the macro. Conceptualy it is cleaner to // handle these two tasks separately. // // 2.: There are several nice suggestions to enhance this macro at: // webboard.vedit.com?read17457,30.htm //