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

Re: Dual-action (Windows-XyWrite) HoMe and End keys



Martin:

> > P.S. You can locate frames $H and $I in U2, provided that you add
> > one of the following two redirection frames near the top of the DLG
> > file (just under the ;DG; file identifier):
>
> 	The fact that you mention this suggests that there's an advantage to
> putting the $H and $I frames in U2---is that right?

The overriding advantage is convenience -- yours and ours. Code is easier to install, maintain and
update if it's all collected in a single place (U2). What's more, there is no discernible
disadvantage -- at least, none that I've been able to discern since I started redirecting $x frames
to U2 several years ago. I redirect all of my $x frames (including STACK.PM), using the second of
the two redirection frames that I sent yesterday.

It occurs to me that since the Windows half of this dual usage is tethered to the Home and End keys,
even a DLG-based routine can be reduced to a single frame that branches according to the key code of
the depressed key. DECODE the revised frame below, and locate it in either DLG or U2, as you
prefer. (Obviously, if you choose U2, you'll need to install a redirection frame in DLG as per
yesterday's instructions.) In the KBD file, change the $I key assignments to $H, so that both the
Home and End keys call $H.

XPLeNCODE v2.0
b-gin [UNTITLED]
{{;5$H}} Dual-action (Windows-XyWrite) HoMe and End keys [CLD
 rev.7/24/06][cr|lf]{002}{<}SX01,{<}VA$KC{>}{>}{<}SV02,[LB_]{
{062}}{<}SV03,[HM_]{>}{<}IF("|"+{<}IS01{>}+"|"){238}"|71|92|"<0{>
}{<}SV02,[LE_]{>}{<}SV03,[BS_]{>}{<}EI{>}{<}PV02{>}{<}IF{<}VA
$WS{>}>0{>}{<}SX02,{<}RC{>}{>}{<}IF{<}VA$KC{>}=={<}PV01{>}{>}
{<}SX02,{<}IS03{>}{>}{<}EI{>}{<}PV02{>}{<}EI{>}{002}[cr|lf][c
r|lf]
-nd
XPLeNCODE

Works well here.

--
Carl Distefano
cld@xxxxxxxx