KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q31493: Macro to Toggle HOME Key

Article: Q31493
Product(s): See article
Version(s): 1.00
Operating System(s): OS/2
Keyword(s): ENDUSER | tar66615 | mspl13_basic
Last Modified: 12-JAN-1989

You can create a macro to do the following:

1. Press HOME key (cursor goes to beginning of line).

2. Press HOME key again (cursor goes to top of window).

3. Press HOME key again (cursor goes to top of buffer).

This technique usually is used to create a toggle key, but it is
equally applicable to the desired three-step toggle. The technique is
as follows:

home1:= begline arg "home2:f10" assign
home2:= home arg "home3:f10" assign
home3:= mark arg "home1:f10" assign
home1:f10

After following this procedure, the F10 key will toggle among begline,
home, and mark.

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.