[Date Prev][Date Next][Subject Prev][Subject Next][
Date Index][
Subject Index]
Sam Martin's question
- Subject: Sam Martin's question
- From: Bob Zimmerman zimmerman@xxxxxxxx
- Date: Tue, 8 Sep 1998 08:53:05 -0400 (EDT)
On September 3rd, Sam Martin wrote:
Say, what are these programs for "&I" and "@I" (to fetch and put back what
is on the command line)? Those I can use.
Your request involves going back into programming I did almost four years
ago. Once I had figured this out and it worked, I put it out of my mind and
have literally forgotten what I did.
Though I no longer understand precisely what these commands do, here is the
exact text that I find in each relevant program. The first program,
savecm.pm, saves the text on the command line to a save/get:
«SX979,«IS00»»«EX»
The second program, getcm.pm, returns the text back to the command line:
BC «PV979»GT «EX»
To make them work I added these two lines to my startup.int file:
BC ldpm c:\xywrite\savecm.pm,&I
BC ldpm c:\xywrite\getcm.pm,I
Whenever I create a keyboard macro that will use the command line, I insert
&I and @I before and after that use in the macro. The first activates
savecm.pm (which saves what was on the command line) and the second
activates getcm.pm (which retrieves and returns the old command line text).
To make it work most efficiently, I also added &I and @I to most of the
keyboard macros in my keyboard file.
I KNOW I'm not describing this as completely as I should. I don't remember
all the detail work I did to make it work. Try it, and if something fails
ask the group--someone else here who does this on a more regular basis will
surely be able to immediately spot the problem.
I do know that this has been a very useful little addition to my Xywrite
word processor. For example, if I'm doing a series of complicated searches
through several files, I don't have to retype the search command over and over.
Bob
__________________________
Bob Zimmerman
13909 Briarwood Drive, #323
Laurel, Maryland 20708
301-604-2255
email: zimmerman@xxxxxxxx