home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 1
/
GoldFishApril1994_CD2.img
/
d4xx
/
d483
/
pwkeys
/
setpwkeys.doc
< prev
next >
Wrap
Text File
|
1991-05-10
|
7KB
|
215 lines
//
\\ // SetPWKeys V1.0
\//
1991
by
Preben Nielsen
Note: Below I will talk of both SetPWKeys (off course) AND PWKeys. You
should also take a look at the PWKeys documentation (maybe first).
WHAT IS SETPWKEYS ?
SetPWKeys is an program that lets you define key-function bindings
for use with the PWKeys program. So if you don't use PWKeys then you
won't have any use for SetPWKeys.
HOW TO START SETPWKEYS
From CLI : Type 'SetPWKeys' and press RETURN.
There is NO need to use 'RUN', 'RUNBACK', 'ARUN' etc.
SetPWKeys is auto-detaching when run from CLI (It
won't prevent you from closing the CLI-window)
From Workbench: Double-click on the SetPWKeys icon.
To use other key-bindings than the default do this:
WHAT CAN SETPWKEYS DO ??
PWKeys lets you perform 17 functions on windows/screens.
These functions are:
Window-to-top
Window-to-bottom
Window-to-left
Window-to-right
Window-to-left-top
Window-to-left-bottom
Window-to-right-top
Window-to-right-bottom
Window-to-center
Window-to-front
Window-to-back
Activate-previous-window
Activate-next-window
Back-window-to-front
Front-window-to-back
Back-screen-to-front
Front-screen-to-back
By default PWKeys binds the functions to following key-combinations:
LAMIGA-KP1 : Window-to-left-bottom \
LAMIGA-KP2 : Window-to-bottom \
LAMIGA-KP3 : Window-to-right-bottom \
LAMIGA-KP4 : Window-to-left \ Take a look at the
LAMIGA-KP5 : Window-to-center >numeric keyboard to
LAMIGA-KP6 : Window-to-right / why I chose these
LAMIGA-KP7 : Window-to-left-top /
LAMIGA-KP8 : Window-to-top /
LAMIGA-KP9 : Window-to-right /
LAMIGA-LEFTARROW : Activate-previous-window
LAMIGE-RIGHTARROW : Activate-next-window
LAMIGA-UPARROW : Window-to-back
LAMIGA-DOWNARROW : Window-to-front
LSHIFT-LAMIGA-UPARROW : Front-window-to-back
LSHIFT-LAMIGA-DOWNARROW: Back-window-to-front
RAMIGA-UPARROW : Front-screen-to-back
RAMIGA-DOWNARROW : Back-screen-to-front
where
LAMIGA means the left Amiga key
RAMIGA means the right Amiga key
LSHIFT means the left shift key
KP1 means '1' on the numeric keyboard
KP2 means '2' on the numeric keyboard
KP3 means '3' on the numeric keyboard
KP4 means '4' on the numeric keyboard
KP5 means '5' on the numeric keyboard
KP6 means '6' on the numeric keyboard
KP7 means '7' on the numeric keyboard
KP8 means '8' on the numeric keyboard
KP9 means '9' on the numeric keyboard
UPARROW means arrow-up key
DOWNARROW means arrow-down key
RIGHTARROW means arrow-right key
LEFTARROW means arrow-left key
To use other key-function bindings than the default bindings above,
you can use SetPWKey.
SOME TERM EXPLANATIONS
From now on, the term 'qualifier-key' will mean any one of these:
the CTRL-key
the CAPSLOCK-key
the left SHIFT-key
the right SHIFT-key
the left ALT-key
the right ALT-key
the left AMIGA-key
the right AMIGA-key
The term 'qualifiers' will mean any combination of qualifier-keys.
The term 'action-key' will mean a key that will trigger some action
(This could also be a qualifier-key).
The term 'hotkey' will mean a combinations zero or more qualifier-keys
together with ONE action-key.
LMB will mean the left mouse button.
RMB will mean the right mouse button.
HOW TO MAKE KEY-FUNCTION ASSOCIATIONS
When SetPWKeys is started it will display a single-bitplane screen.
This screen contains:
1. In the upper left part of the screen is the names of the
17 functions.
2. At the bottom of the screen is a picture of the entire keyboard.
3. In the upper right part of the screen is 8 gadgets, which will
be described shortly.
4. An area at the top of the screen used for displaying messages
to the user (You).
THE FUNCTIONS
To modify the key bindings of any of the 17 functions, simply click
the mouse on the name of the function. The function is now hilited
and the keyboard at the bottom of the screen will display the current
hotkey. When a function that is not hilited appear unreadable it means
that the function is undefined (i.e. has no hotkey yet).
THE KEYBOARD
When you have selected one of the 17 functions, the keyboard will
display the current hotkey. The selected qualifier-keys will appear
ghosted (like the title-bar on inactive windows under kickstart 1.0-1.3),
and the selected action-key will appear hilited.
To select a qualifier-key just click the RMB on it. To clear it simply
click the RMB on it again.
To select an action-key just click the LMB on it. To clear it simply
click the LMB on it again. A qualifier-key can also be used as an
action-key. It is possible to define a hotkey such as LALT-LSHIFT-RALT
(i.e. if you hold down the LALT and the LSHIFT, then pressing the RALT
would trigger some action)
THE GADGETS
The screen contains 8 gadgets:
» The 'Quit' gadget which ends SetPWKeys
» The 'Check' gadget which will check if there are any duplicates
amongst the hotkeys and tell you the result (but it won't show
you which). 'Use' and 'Save' will automatically use the facility
and fail if it finds any duplicates.
» The 'Use' gadget which will copy the hotkeys PWKeys handler (iff
the handler has been installed)
» The 'Undo' gadget which will undo any modifications you have made
on the keyboard since you clicked on the current function.
» The 'Clear' gadget which will undefine the current function by
wiping the keyboard clean (this can be recoved using 'Undo'). If
there is any undefined functions when you select 'Save' or 'Use',
these functions will be disabled (i.e. they accessed through PWKeys).
» The 'Save' gadget which will save the hotkeys to a file (the file
can then be used by PWKeys)
» The 'Load' gadget which will load hotkeys from a file (iff the
file has been created by SetPWKeys)
CREDITS:
Davide P. Cervone for his wKeys from Fisk-disk 128.
=====================================================================
Send bug-reports, suggestions, comments etc. to:
///
/// Preben Nielsen
\\\ /// Oehlenschlægersgade 72 st. T.V.
\\\/// 1663 Copenhagen V.
\/// Denmark