home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
lpexmac.zip
/
CPAGE.LX
next >
Wrap
Text File
|
1998-09-05
|
2KB
|
57 lines
/* english text follows below */
/* Datei: cpage.lx
Zweck: Macro zum bewegen des Cursors and den unteren bzw. oberen Fensterrand
Erstellt: 03.08.98
Autor: Jens Fettkenheuer (Clearwater Software & System Service GmbH)
Erläuterungen:
Diese Datei muss sich entweder im Verzeichnis X:\IBMCPP\MACROS oder
in einem Verzeichnis das in der Umgebungsvariablen "LPATH" aufgeführt
ist, befinden.
Um das Macro zu aktivieren, müssen in die Datei PROFILE.LX die Zeilen:
'SET ACTION.A-End MACRO CPAGE B'
'SET ACTION.A-Home MACRO CPAGE T'
eingefügt werden. Diese sorgen dafür, daß durch drücken der Tastenkombinationen:
Alt+End bzw. Alt+Ende (unterer Fensterrand)
Alt+Home bzw. Alt+Pos1 (oberer Fensterrand)
das Macro gestartet wird.
Ich habe festgestellt, daß neue Macros erst nach einem Reboot (OS/2) aktiv werden.
*/
/* File: cpage.lx
Purpose: Macro to move the cursor to the first and/ or to the last row of
the editor window
Created: 03.08.98
Author: Jens Fettkenheuer (Clearwater Software & System Service GmbH)
Explanations:
This file must be stored either into the directory X:\IBMCPP\MACROS or in a
directory stated in the environment variable "LPATH".
To activate the macro the following lines must be inserted into the file
PROFILE.LX
'SET ACTION.A-End MACRO CPAGE B'
'SET ACTION.A-Home MACRO CPAGE T'
These lines activate the keys
Alt+End (move cursor to first row)
Alt+Home (move cursor to last row)
i found that new macros become active after a reboot only
*/
ARG action
SELECT
WHEN action = "T" THEN DO
'set cursorrow' 1
say "Cursor moved to top of window"
END
WHEN action = "B" THEN DO
'extract dispdepth into sh'
'set cursorrow' sh
say "Cursor moved to bootom of window"
END
END