home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 2: PC
/
frozenfish_august_1995.bin
/
bbs
/
d09xx
/
d0983.lha
/
CapsLockExt
/
CapsLockExtender.doc
< prev
next >
Wrap
Text File
|
1994-04-04
|
4KB
|
75 lines
CapsLockExtender
Version 1.0
WHAT IT DOES
░░░░░░░░░░░░
CapsLockExtender is a Commodity with two actions. First, it extends
the action of the CapsLock to every key on the keyboard, including the arrow
keys, the function keys, backspace, Del, and the numeric keypad. Second, it
allows the user to temporarily cancel the action of CapsLock by holding down
either SHIFT key. This causes CapsLock to act like a SHIFT-lock key on a
typewriter. CapsLockExtender requires AmigaDOS 2.04 or higher.
USAGE
░░░░░
From the Shell, CapsLockExtender has this usage:
Format: CapsLockExtender [CX_PRIORITY=] [NOKEYPAD] [HOT]
Template: CX_PRIORITY/K/N, NOKEYPAD/S, HOT/S
[CX_PRIORITY=] is the usual Commodities priority. I suggest you keep
this low to avoid any problems with programs that use HotKeys (unless you
are using the HOT option). The default value is zero.
[NOKEYPAD] causes CapsLockExtender to ignore keys in the numeric
keypad, so they are not SHIFTed when CapsLock is on. Most programs treat
SHIFTed keypad keys identically to unSHIFTed ones, so this option has little
use. However, if you have a program that responds differently to SHIFTed
keypad keys, you may want to use this.
[HOT] requires a little technical explanation. When you press a key
on the keyboard, the system generates an InputEvent that records which key
was pressed and also which qualifier keys (such as SHIFT, Alt, CapsLock,
etc.) were down. In default mode, when CapsLockExtender finds an InputEvent
in which CapsLock is on and SHIFT is not, it alters the InputEvent to
indicate that CapsLock is on and the left SHIFT key is down. In HOT mode,
it alters the InputEvent to indicate that the left SHIFT key is down and
CapsLock is not on.
Most programs will treat these two different InputEvents identically.
The exception is a program that uses a HotKey. Let us take the system
Commodity Blanker as an example. It uses SHIFT-f1 as a HotKey that causes
it to open its control window. Consider what happens if you run
CapsLockExtender, turn CapsLock on, and press f1. When CapsLockExtender is
in default mode, Blanker will see an InputEvent with the qualifiers
left-SHIFT and CapsLock, and it will NOT open its window. Blanker is
looking for a specific qualifier for its HotKey, and the presence of the
CapsLock qualifier means that this InputEvent does not meet the
specification. On the other hand, if CapsLockExtender is in HOT mode, then
Blanker will see an InputEvent with just the left-SHIFT qualifier, and it
WILL open its window.
So, if you want the CapsLock key treated as the equivalent of a SHIFT
key for HotKey programs, then run CapsLockExtender in HOT mode. You will
also need to set CapsLockExtender's CX_PRIORITY higher than the CX_PRIORITY
of the HotKey programs.
To run CapsLockExtender from the Workbench, just double-click its icon.
It uses the ToolTypes CX_PRIORITY=, NOKEYPAD, and HOT, which are the same as
the Shell options. As usual, if you put CapsLockExtender in the WBStartup
drawer, remember to use the ToolType DONOTWAIT.
To kill CapsLockExtender, either run it again, or use the Exchange
program, or send it a CTRL-C or CTRL-E.
HERE'S LOOKING AT YOU, KID
░░░░░░░░░░░░░░░░░░░░░░░░░░
Send your comments and complaints to
Douglas Nelson
2006 N. 49 Avenue
Omaha NE 68104
USA
By the way, this program is freely distributable, for your dining and
dancing pleasure.