[Date Prev][Date Next][Subject Prev][Subject Next][
Date Index][
Subject Index]
Typing allergy
- Subject: Typing allergy
- From: jxz@xxxxxxxx
- Date: Thu, 1 Jan 2004 10:23:03 +0100
Happy New Year everybody
Being allergic to typing I tend to keep commands I'm likely
to use frequently in the form of ready- made text lines
which a keystroke can chuck up to the command line ready
for eXeCution. An example is:
ca c:\autoexec.bat
Recently though I discovered that if one adds xy digrams to
the text destined for the command line, xy3 will execute
these immediately they land there. So one can edit the above
line into:
SW n BC ca c:\autoexec.bat XC
or even:
SW n BC ca c:\autoexec.bat XC SW h BC ca c:\config.sys XC
Of course you can't create the digrams in a file which
hasn't been opened with NEP or CAP but you can store & use
them there.
Xy4 has an inbuilt command for copying text from a file up
to the command line [jm, (,c,o,p,y,t,o,c,m,)] but Xy3
doesn't. If you want to know how to do it in III, let me
know. It's a little bit complex to visualise even if it's
easy to use once it's in place.
Briefly, one needs a saveget (@ or &, but loaded
automatically by startup.int) containing code which:
- copies the selected text into one of the savegets named
0-9 (useable by means of a pv5, that is, not a pv05)
- moves the cursor up to the command line, spits out the
saveget's contents, returns to the text area
Then of course one needs to define keystrokes in the .kbd
file which use the saveget.
It may sound a bit far fetched but it has its uses. For
one thing, once the command's correct, it avoids mistakes.
For another, if housekeeping's easy to do, it's more likely
to get done ..
John
_____________________________________________________________________
Envie de discuter en "live" avec vos amis ? Télécharger MSN Messenger
http://www.ifrance.com/_reloc/m la 1ère messagerie instantanée de France