[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: Win 7 64 Bit [Metapad]



Reply to note from Carl Distefano  Sat, 24 Nov 2012
16:05:57 -0500

Here's another iteration of the METAPAD frame. Works the same as
before, except this one strips the Ascii-26 end-of-file char from
the DeFined block before displaying it in Metapad. This allows for a
simple Ctrl-A,C in Metapad to select-All and Copy the Xy-DeFined
text to the Windows clipboard.

To recap:
Metapad.exe must be in the directory that contains EDITOR.EXE.
METAPAD launches Metapad, displaying a blank new file
METAPADF opens the current XyWrite file or DeFined block in
Metapad

Note to Jon P: *IF* this frame works in Xy4 running under DOSBox, it
will make it easier to get a DF block from XyWrite into the Windows
clipboard (i.e., easier than opening the entire file in Notepad).

PS: It would be easy enough to adapt this frame to work with any
Windows text editor.

XPLeNCODE v2.0
b-gin [UNTITLED]
{{;5metapad*}} Launch Metapad Windows text editor from Xy4 di
rectory; METAPADF loads current XyWrite file|DF block|filenam
e from DIR listing into Metapad [CLD rev.11/25/12][cr|lf]{002
}[BX_]es 1[Q2_]{<}SV01,{>}{<}IF@upr({<}VA$FR{>}){240}"F"&{<}V
A$WS{>}>0{>}{<}SX01,{<}VA$FP{>}{>}{<}IF{<}VA$WS{>}>1{>}{<}SX0
1,{<}VA$DR{>}{>}{<}EI{>}{<}EI{>}{<}SX50,{<}VA$ED{>}{>}[JM_]2.
GetPath[Q2_]{<}IF{<}VA|01{>}>0&{<}VA$DF{>}>0{>}[DZ_]{<}IF{<}V
A$DN{>}-{<}VA$DB{>}>0{>}{<}SX01,{<}IS50{>}+"\XYDEFINE.TX"{>}[
BX_]sad/nv {<}PV01{>}[Q2_][BX_]wait[Q2_][BX_]dos/nv/x/z /c co
py {<}PV01{>} /a {<}PV01{>}T /b[Q2_][BX_]wait[Q2_][BX_]ernv {
<}PV01{>}[Q2_][BX_]wait[Q2_]{<}EI{>}{<}EI{>}[BX_]dos/nv/x/z /
c cmd.exe /c start {<}PV50{>}\metapad.exe{<}IF{<}VA|01{>}>0{>
} {<}PV01{>}T{<}EI{>}[Q2_]{002}[cr|lf][cr|lf]
-nd
XPLeNCODE


--
Carl Distefano
cld@xxxxxxxx