VDK Macros
* VDK.VTF, by John Woodruff, April 2000 * * VMC requires a few extra steps when you want to: * (1) compile and install a single .vtf macro to a function key, or * (2) decompile a function key macro for editing in .vtf format * * Here are 2 macros that take those extra steps. To save macro * space, they use the batch files VTF2VDK.BAT and VDK2VTF.BAT. * * The VDE directory, as defined in VDE.DOC, must be coded * into the macros where ^KW and ^KR are used, and likewise * into the batch files. Please adjust the c:\v\ path used * here to match your VDE directory. * * An unimportant problem: * * It is OK to include both Random Comments and an * *F01] Named Comment in the block for the [vtf2vdk] macro * (see VMC document for more info on comments). VMC will write * the comment(s) to T.VCF. However, you might later overwrite * T.VDK but not T.VCF, such as by doing AltU Save from an F-key * or by running [vtf2vdk] on an [F01] with no comment. * * Then, when you run the [vdk2vtf] macro, VMC will * include all the comment(s) from the the old T.VCF in the * new T.VTF. Ignore, exclude, and shun them. Using the * "......[Fkeylbl]" convention at the beginning of each * Named Comment flags this unimportant problem by lining up * matching (or non-matching) F-key labels. * * Note: Edit c:\v\ path to match your VDE directory. * *@04]......[vtf2vdk] after user blocks an [F01] .VTF format * macro, writes block to T.VTF, runs VTF2VDK.BAT, loads T.VDK * and waits for user to make F-key assignment (can be any * F-key). The macro *must* be labeled [F01]. [@04]<Esc >[vtf2vdk]<N> ^KWc:\v\t.vtf[Enter] [AltR]VTF2VDK[Enter] [Esc][AltU]Lt.vdk[Enter] * *@05]......[vdk2vtf] given T.VDK on the VDE directory, runs VDK2VTF.BAT, * opens a new untitled file, reads T.VTF and blocks it. The macro * will be labeled [F01] regardless of source. [@05]<Esc >[vdk2vtf]<N> [AltR]VDK2VTF[Enter] [Esc][AltL][^Enter] ^KB^KRc:\v\t.vtf[Enter] ^QC^KK * *End of Macro The batch files: :: VDK2VTF.BAT :: Decompiles T.VDK to T.VTF :: Revise VDE directory name as necessary @echo off c: cd\v copy T.VDK T.VDF vmc T.VDF pause del T.VDF :: end :: VTF2VDK.BAT :: *.VTF > *.VDF > *.VDK :: Revise VDE directory name as necessary @echo off c: cd\v vmc T.VTF pause copy T.VDF T.VDK del T.VDF ::end |
Go back to:
Top of page
Macro Viewer
Mostly VDE