SB> grey* "*"
> [...]
> @#del Cut
EM> What is the GRAY key and the above setup?.
The grey keys (you have to spell it the E way in the CONFIG.DAT
file) are the keys on the numeric keypad on the right end of a
keyboard, by the arrows that act as numbers when NumLock is on.
The above setup defines some of those keys to do particular
things. One of the points of using TSE (Jr. or Pro) is that you
can make various keys do whatever you want, not have to learn
commands that someone *else* thought natural. Stuff like:
* inverts letter pair (start on first; ends on second)
^Del MacroBegin SaveSettings SetScreenOff SetInsMode
DupLine CursorRight DelCh ShiftRight GetPrev
ShiftLeft CursorUp DelLine CursorLeft RestoreSettings
* jump to end of TEXT, not end of FILE
^End MacroBegin SetScreenOff EndFile
Begin: isEmptyLine jTrue NEXT jFalse LAST
Next: CursorUp jTrue BEGIN
Last: EndLine
The particular issue being handled in the question could have
been handled in different ways. For example, I used these
Grey+ MacroBegin Copy MacroQuitTrue "+"
Grey- MacroBegin Cut MacroQuitTrue "-"
constructs in TSE Jr, and similar forms in TSE Pro
if not isBlockInCurrFile() InsertText("+") else Copy() endif
if not isBlockInCurrFile() InsertText("-") else Cut() endif
to test whether there's a block and act accordingly. I also
generically test the NumPad keys, and act on a combination of
shift/NumLock, to get either/or results, as in:
if GetKeyFlags() & _num_lock_depressed_ Down()
else InsertText("2") endif
... That was a time when only the dead could smile. * Anna Akhmatova
--- SR 2.00 #1019
---------------
* Origin: Chowdanet! 20gb Amateur Radio BBS (401-331-5587) (1:323/120)
|