Re: User define key
- From: "BobLogan" <boblogan@xxxxxxxxxxxxxxxxxx>
- Date: Tue, 26 Jul 2005 00:22:48 -0400
>Anyway, if any of you guys can help me out, I want to:
>1) map the [<--] key to the [SPC] key
>2) map the [SPC] key to the [<--] key
>so that, after I have [ALPHA][ALPHA] (lock the alphabet mode), I can
>use the [<--] (or DROP as Bob says) to insert a space, and vice versa.
>Without locking the alphabet mode, I don't want the keys to be
>remapped. I guess this has something to do with 104.1 or 104.4 code.
So if I understand correctly, you want to switch the functions of the DROP
and SPC keys only when the alpha lock is on. In other words, you want to
switch the actions of keys 45.4 and 104.4.
Using TakeOver is very important. Unfortunately, when you simply type it
into the program inside the editor, you'll only be putting the global name
TakeOver into the program. You can't use a SYSEVAL because the command
itself must be used. In addition, it must be the *very* first thing in the
program, even before the << . The useful thing about ->TO? from Keyman is
that it puts a TakeOver at the beginning. It will still work if you
uninstall Keyman, since all ->TO? does is add an extra command to the
program.
If you don't want to get Keyman, there is a way to add TakeOver yourself.
I'll use a PTR rather than a command name, since I assume you don't have
extable (a library for SysRPL programmers).
Do this:
1. Put the program on the stack
2. Type 256 ATTACH
3. Type ->S2
4. Press the down arrow
5. Create a new line after the double colon and type PTR 275C6
6. Press ENTER
7. Type -92 SF ASM and press ENTER
Although the program won't look any different (unless you have SysRPL
stack display on), it will now be ready to assign to a key.
Now, if you want to swap the functions of two keys, you'll run into a
problem with KEYEVAL: it will use the user-defined key def if user mode is
on, rather than the builtin one. To solve this, you'll have to turn user
mode off before the KEYEVAL, and back on again afterward. Otherwise,
you'll get an infinite loop. So the two programs you'll need are:
<< -62 CF 104.4 KEYEVAL -62 SF >>
(assign to key 45.4)
<< -62 CF 45.4 KEYEVAL -62 SF >>
(assign to key 104.4)
Both these programs will need a TakeOver before you assign them. Again,
Keyman makes this easy because all you need to do is put the program on
stack level 1 and type ->TO?
Note that <-- and SPC will still be switched if you only press ALPHA once.
Avoiding this would take some more SysRPL.
Hope that helps.
Bob
.
- References:
- User define key
- From: f4ding
- Re: User define key
- From: f4ding
- User define key
- Prev by Date: Re: HP33s First impressions
- Next by Date: Re: User define key
- Previous by thread: Re: User define key
- Next by thread: Re: User define key
- Index(es):
Relevant Pages
|