The FNKEY 4.0 manual consists of the following parts:
These are reproduced below, verbatim except that any errata in the notes have been incorporated in the main text.
On a separate web page I have merged all these separate parts together to form a unified FNKEY version 4.0 manual.
mode shift del a | means | mode shift del shift A |
mode shift del b | means | mode shift del shift B |
mode shift del c | means | mode shift del shift C |
mode down a-z | means | mode down shift A-Z |
See also sections 3.1, 5.1, 9 and 10 in the supplement.
The command is mode left left. Because mode left is also used to begin an assign sequence there will be a beep when you press left the first time, this is quite ok and is normal.
Clearing both locks means changing to UPPER case with shift producing the numerics.
There seems to be a minor problem accessing Autoscribe from within a macro, the first letter of the filename you type after the initial prompt (just after the copyright notice) gets lost during replay.
There is a simple work around, before typing the file name press a key such as del or one or the cursor keys (anyway ignored by Autoscribe) when you make your recording, the macro will then replay as expected.
The files DN$, FN$, NW$ and SW$ (see supplement section 6.7) have been replaced by a single file of Scandinavian characters - SC$
These notes should be read in conjunction with the manual for version 3.5 The table of contents below replaces the table of contents in the version 3.5 manual. Sections are marked as follows:
M | read section in manual |
S | read section in supplement |
M+S | read manual and then supplement |
D | Section deleted - ignore |
1 | Introduction | |||
1.1 Overview | M | |||
1.2 Memory resident software | M | |||
1.3 Installation procedure | M | + | S | |
1.4 Removal procedure | M | |||
1.5 Menu fixing | M | |||
1.6 System Capabilities | M | + | S | |
2 | Hands On | |||
2.1 Introduction | M | |||
2.2 The mode key | M | + | S | |
2.3 Key clicks | M | |||
2.4 The sample key files | M | |||
2.5 The date key | M | + | S | |
2.6 Case inversion | M | |||
2.7 Punctuation marks | M | + | S | |
2.8 Pound sign | M | |||
2.9 Break character | M | |||
3 | Keyboard Macros | |||
3.1 Making a recording | M | |||
3.2 Replaying a recording | M | + | S | |
3.3 Saving a recording to a key | M | + | S | |
3.4 Replaying a saved recording | M | |||
3.5 Deleting a saved recording | M | |||
3.6 Deleting all recordings | M | |||
4 | Cut and Paste | |||
4.1 Introduction | M | |||
4.2 Line mode | M | + | S | |
4.3 Word mode | M | + | S | |
4.4 Moving copying & pasting | M | |||
4.5 New lines | M | |||
4.6 Multiple operations | M | |||
5 | Viewing Recordings - | |||
5.1 Viewing recordings | M | + | S | |
5.2 Deleting recordings | M | |||
5.3 Copying recordings (new) | S | |||
6 | Using Key Files | |||
6.1 Introduction | M | + | S | |
6.2 Loading key files - | M | + | S | |
6.3 Saving key files - | M | + | S | |
6.4 Backup and restore - | & restM | |||
6.5 The key file directory - pack | M | |||
6.6 Deleting key files - key | M | |||
6.7 Character files - | (new)S | |||
6.8 Language files - | (new)S | |||
7 | Configuration Options | |||
7.1 Introduction - | M | + | S | |
7.2 The hot key | M | + | S | |
7.3 Cut and paste (also Autoscribe) | M | + | S | |
7.4 Key clicks | M | + | S | |
7.5 Recording buffer - | (ignore)D | |||
7.6 Special characters - | M | + | S | |
7.7 Date options (new section) | S | |||
8 | Compatibility and Error Messages | |||
8.1 The XP and CM | M | |||
8.2 The LZ and LZ64 | M | |||
8.3 Older versions | M | + | S | |
8.4 Error messages | M | |||
9 | Quick Reference Chart | |||
10 | Miscellaneous (new chapter) | |||
10.1 Drive selection | S | |||
10.2 Bank switching | S | |||
10.3 Cap and num locks | S | |||
10.4 Application interface | S |
The default (10 buffer) configuration when you install FNKEY now requires just over 4K (approx 1K larger than version 3.5).
Due to the increase in size it is no longer possible to install FNKEY in low memory while leaving enough room for the Comms Link.
FNKEY 4.0 is both very much faster than previous versions and is now compatible with all organiser software with which it has been tested.
In particular FNKEY is now compatible with Autoscribe (Widget).
The
, and parameters which were used in Version 3.5 to make FNKEY work properly with various s/w on the LZ have been removed from version 4.0 as they are no longer required.In addition to the mode key being used to active FNKEY the following keys are used by the cut and paste facility.
shift up | use mode up up | to toggle the cap lock |
shift down | use mode down down | to toggle the num lock |
There are two new date stamp macros.
mode shift space | replays Jan, Feb, Mar,... |
mode shift exe | replays Sun, Mon, Tue,... |
See section 7.7 for configuration options (mode space).
The number of special characters which may be accessed has been increased from 26 to 52.
mode down A to mode down Z | access basic set. |
mode down a to mode down z | access alternate set. |
See section 7.6 for configuration options.
In previous versions of FNKEY, if you replayed a macro while in recording mode the actual text of the macro would be stored as part of the current recording.
So for example from the top level menu (on an LZ)
mode right | start recording |
N | enter notepad |
mode space | the date |
exe | new line |
mode right | stop recording |
mode left N | assign to N |
pressing mode N would always result in the same date being entered in the notepad !
Version 4.0 is able to store not only key strokes but also references to other macros and (almost but not quite all) FNKEY commands. Consequently in the above example FNKEY stores a reference to the macro rather than the actual macro text so that the above macro would enter the notepad and copy the correct date into the notepad.
Here is a useful date macro.
mode right | start recording |
mode shift exe | day of the week |
space | a space |
mode space | the date |
left left | cursor over year |
del del del del | delete month (figures) |
space | a space |
mode shift space | the month (text) |
space | a space |
right right | cursor over year |
mode right | stop recording |
mode left D | assign to D key |
mode D now replays the date in the format: Mon 10 Jun 91
and can be referenced from within other macros.
A macro which references mode exe can be used for example to paste text (after copy or cut) directly into an application.
The following key combinations give rise to internal references within a macro (when pressed during recording).
mode A-Z | references and replays macro A-Z |
mode exe | references but does not replay the contents of the recording buffer |
mode space | references and replays date according to current at setting (see section 7) |
mode shift space | references and replays month |
mode shift exe | references and replays day of week |
mode shift del (shift A) | references and actions drive select A |
mode shift del (shift B) | references and actions drive select B |
mode shift del (shift C) | references and actions drive select C |
mode up up | references and actions cap lock |
mode down down | references and actions num lock |
mode left left | references and actions clear locks |
See section 10 for details of drive select commands.
You can make a macro repeat over by pressing :
mode shift del A-Z | replays next macro 2 - 27 times |
mode shift del space | set repeat count back to 1 |
Note the repeat count is reset to 1 after replay has stopped (either by running to completion or aborted by the user).
If you have set the repeat count in error and wish to cancel use the mode shift del space sequence to reset the count.
The repeat count is always reset to 1 when you start a recording session. While in recording mode attempts to set the repeat count result in an error beep.
In contrast to earlier versions of FNKEY you cannot assign a partially complete recording to a key, you must end the recording session first.
Take care when assigning a recording which contains references to other macros not to create a circular reference.
During replay macro references are stored in a stack. One macro may call a macro which calls yet another until a depth of eight nested calls are reached at which point replay is automatically terminated. There is no limit to the number of macro called at any one level.
For example.
record | " goodbye" exe | assign to A key |
record | "hello" mode A | assign to B key |
record | mode B (10 times) | assign to C key |
In the notepad replay C, you will get 10 times "hello goodbye"
Now try
record | "hello goodbye" exe mode A | assign to A key |
In the notepad replay A, you will get 2 times "hello goodbye" and then replay will stop, this is a self referencing macro and it automatically terminates when the stack becomes full.
Important, a macro which references other macros will change its effect if any of the called macros are changed.
The method detailed in the manual is not longer applicable. From the key menu select shift del and answer yes to the prompt.
(see version 3.5 supplementary notes), pressNow permanently assigned to shift right (copy) and shift left (cut or move).
Now permanently assigned to shift down (copy) and shift up (cut or move).
References to other macros within a recording are stored as a two byte code for each reference. Both bytes appear as a solid block in normal display mode.
In control mode the first byte (hex 1F. ascii 31) appears as a small square in the upper left hand corner (°) the second byte is interpreted as follows :
°A-°Z | mode A-Z | references macro A-Z |
°0 | mode exe | references recording buffer |
°1 | mode shift del a | references drive select A |
°2 | mode shift del b | references drive select B |
°3 | mode shift del c | references drive select C |
°4 | mode space | references date (Dt = 0) |
°5 | mode space | references date (Dt = 1) |
°6 | mode space | references date (Dt = 2) |
°7 | mode space | references date (Dt = 3) |
°8 | mode shift space | references month |
°9 | mode shift exe | references day of week |
°← | mode up up | references cap lock |
°→ | mode down down | references num lock |
°_ | mode left left | references clear locks |
°. | ascii code 31 | genuine ascii code 31 |
°a-°z | mode a-z | see section 10.4 |
It is possible for ° to occur as the very last character in a full (254 char) recording, in such cases it is ignored during subsequent replay.
allows you to view the contents of the recording buffer, see version 3.5 supplementary notes.
In previous versions it was possible to reassign a recording from A to B say as follows.
mode right mode A mode right and then mode left B
This no longer works since only a reference to A will be stored, to make a genuine copy view the recording and press shift del, responding Y to the prompt will copy the macro to the recording buffer, it can then be assigned to another key.
It is also possible to copy recordings from one bank of keys to another by this means.
This option does not apply to
.There are now 3 types of key files.
By convention, character definition file names end in a $, language definition file names end in a % and ordinary key file names end in a letter or number. You are not obliged to keep to this convention.
Loads a macro, character or language definition file.
determines how to process the file by examining its file length.
Days of the week files are always | 21 bytes long |
Months of the year files are always | 35 bytes long |
Character definition files are always | 52 bytes long |
Macro definition files are always | longer than 52 bytes |
Attempts to save a null file (no macros defined) result in an error beep (the resultant file would be 52 bytes long).
Likewise
will fail for the same reason in the same circumstances.works in the same way as but stores the current set of punctuation and foreign characters as defined by .
The following files are provided on the FNKEY datapack.
UK$ | default - just punctuation marks |
DN$ | Danish character set & punctuation marks |
FN$ | Finnish character set & punctuation marks |
FR$ | French character set & punctuation marks |
GK$ | Greek character set & punctuation marks |
GR$ | German character set & punctuation marks |
IT$ | Italian character set & punctuation marks |
NW$ | Norwegian character set & punctuation marks |
SW$ | Swedish character set & punctuation marks |
SP$ | Spanish character set & punctuation marks |
You can examine these by loading a file and than using
.is a separate program provided on the FNKEY datapack, there are two options and .
Select an appropriate option, enter a string of 3 character abbreviations (you may include spaces, you may also include foreign characters as defined by
, however each abbreviation must be exactly 3 characters long and you must enter an abbreviation for each and every day / month), press enter and save in the normal way.Months must be listed from January. The default setting is
JanFebMarAprMayJunJulAugSepOctNovDec
Days must be listed from Monday. The default setting is :
MonTueWedThuFriSatSun
There are 4 files provided on the FNKEY datapack :
LMON% | months | : JanFeb... |
LDAY% | days | : MonTue... |
UMON% | months | : JANFEB... |
UDAY% | days | : MONTUE... |
The
option combines the options available in the old and options. The new menu appears as follows.Fn=1 Cp=1 Al=0 Dt=0 Ln=1 Ky=1
These parameters are explained below.
Please note that the old parameters
are no longer required in version 4.0 and have no equivalents in this version.The new
parameter is a combination of the old and parameters.The new
parameter is a combination of the old and parameters.The new
parameter replaces the old and parameters.Parameters
and remain unchanged.The new
parameter is a compatibility option, do not confuse it with the old parameter (see section 7.3 below).The easiest configuration to work with is the default setting Fn=1 together with Cp=1, you may also wish to try Fn=4.
The
parameter now takes values 0 to 5, the settings are as follows :0 or 3 | disables FNKEY ( | parameter remains still in effect).
1 or 4 | default setting, hot key is mode, use mode mode or shift mode to effect normal mode key press. |
2 or 5 | mode key acts as normal, hot key is shift mode. |
For settings 3 to 5 the shift key acts as an independent key, to get a shifted character from the key board (both for FNKEY commands and normal key presses) press and release the shift key and then press the required key. If you have pressed shift in error, pressing it a second time will undo the effect of the first key press. The shift key does not repeat.
For example in the note pad you wish to type : 64K datapack
Normally you would hold down the shift key, press Q (6) and O (4) then release the shift key and type "K datapack".
With Fn=3 for example you would press and release shift, press Q (6), press and release shift, press O (4) and then type the remaining text as normal.
This mode is particularly useful if you have difficulty pressing shifted keys (especially shift del).
The Fn=3 setting is provided so that you can try out this mode without having to handle FNKEY commands at the same time.
The
parameter take values 0 to 3 and determines the action of the shifted cursor keys.In normal use (FNKEY disabled or not installed) these keys behave as follows:
shift up | (a) cap lock |
shift down | (b) num lock |
shift left | (c) left or controls Psion printer |
shift right | (d) right (XP), accented chars (LZ) |
shift left / right are also used by Autoscribe (Widget Software Ltd) for enhanced cursor movement.
Cp = 0 | keys behave exactly as described above. Prefix the key strokes with mode to cut and paste (for example use mode shift left to cut a line). |
Cp = 1 | keys become cut and paste keys. Prefix the key strokes with mode for actions (a) - (d) above, (for example use mode shift right to move one word right within Autoscribe). |
Cp = 2 | the shifted cursor keys return ascii codes 9,10,11 and 12. Prefix key strokes with mode to cut and paste, note actions (a) - (d) are not available in this mode which is provided primarily for use by applications linking into FNKEY directly (see section 10.4) |
Cp = 3 | keys become cut and paste keys. Prefix the key strokes with mode to return ascii codes 9,10,11 and 12, note actions (a) - (d) are not available in this mode which is also provided primarily for use by applications linking into FNKEY directly (see section 10.4) |
Please note actions (a) - (d) cannot be recorded within macros, only the normal up, down, left or right cursor movement will be stored.
The
parameter take values 0 to 2.Ky = 0 | key click turned off except for FNKEY command sequence |
Ky = 1 | default, normal key click. |
Ky = 2 | doubles the length of the normal key click. |
There are now 52 user selectable characters, pressing mode switches between the two sets of characters (in previous versions mode restored the default value for a key - this feature is no longer available).
You may assign the ascii code 0 to a key - this makes the key undefined (nothing happens when you press mode down followed by the key in question).
To make up and down change the ascii code by 1, left and right adjust the code by a value or 16. Thus referring to the appendix of ascii codes in the organiser manual up and down move vertically and left and right horizontally through the table.
easier to use,Edits may be saved with
(see section 6.7).The mode space).
parameter take values 0 to 3 and determines the action date key (Dt = 0 | dd.mm.yy |
Dt = 1 | dd.mm.yy hh:mm |
Dt = 2 | yy-mm-dd |
Dt = 3 | yy-mm-dd hh:mm |
Formats 2 and 3 can be easily sorted into date order.
Note that macros which reference the date key remember the format used when the macro was created, you can therefore set up macros which use different date formats at the same time.
Ascii code 31 occurring within macros loaded from FNKEY files created with earlier version of FNKEY will be misinterpreted by version 4.0 (you are very unlikely to have such macros).
The NULL file supplied with version 3 onwards will he taken as a character definition file by version 4.0 and will erase all character edits rather than all macros.
The following commands have been added in version 4.0.
mode up up | cap lock |
mode down down | num lock |
mode left left | clear locks |
mode shift up | cap lock |
mode shift down | num lock |
mode down a-z | additional special characters |
mode shift space | month |
mode shift exe | day |
mode shift del A-Z | set repeat count |
mode shift del space | clear repeat count |
mode shift del a-c | set drive / datapack slot |
One of the difficulties with defining and using macros with FNKEY relates to the selection of datapacks, the standard approach is ok when used interactively but falls down within macros because the mode key advances the datapack in sequence and its effect is dependent on both current setting and which datapacks slots are occupied.
FNKEY 4.0 provides three key sequences (which can be referenced within macros) which set the current choice of datapack slot in an absolute manner.
occupied slots | None | B | C | B & C |
---|---|---|---|---|
mode shift del a | A: | A: | A: | A: |
mode shift del b | A: | B: | C: | B: |
mode shift del c | A: | A: | C: | C: |
The rule is as follows: if the required slot is occupied it is selected, otherwise it there is a pack in the next slot (a pack in C but not in B and you are trying to select B) that pack will be selected) failing which pack A will be selected.
You should set the pack before entering an application otherwise it may not take effect immediately.
See 3.5 supplementary notes (ii), but note the following :
The
facility can be used to load character, language or macro definition files. When macro definition files are loaded the following restrictions apply :There are two methods for changing the cap and num lock.
There is a slight difference in effect however. Only the first method if used while recording takes effect both when the recording is made and when it is replayed.
In the same way that setting a drive from within a macro can give rise to problems (section 10.1), likewise the effect of mode up up / mode down down will depend on the previous state of the locks.
The command sequence mode left left may be used to clear both locks and hence create an absolute point of reference, if used during recording it will take effect during replay. If you set the state of the keyboard from within a macro you should do so after entering the application where you wish it to be effective (since some applications set the key board status when you first run them).
Details of the application interface can be obtained from Cubsoft.
The assignment of normal macros to A-Z and the quick keys to a-z can be reversed for the duration of the application.
The quick keys can be embedded in macros and appear in view as °a-°z
The length of the recording buffer has now been fixed at 254 chars (maximum allowed under previous versions), consequently the
option has been removed from the utility menu.The size of the buffers used by FNKEY has been reduced to 52 chars each, there are now 127 buffers available. The default setting of 9 buffers (using just under 3K) should be adequate for most purposes.
The display for the
option has been revised to show :Free 468 Size 9 3033
This display shows the amount of currently unused buffer space (the pool) and also the number of buffers allocated to and total amount of memory used by FNKEY when it was installed.
The buffer allocation display which appears when FNKEY is first installed has been revised to match the above format.
A new option
has been added to the utility menu and shows the contents of the recording buffer in a similar manner to the option.Two new parameters mode space and are as follows :
and have been added to the option the settings affect the date stamp key sequenceSt = 0 | Use USA format for date. | YY-MM-DD (default) |
St = 1 | Use UK format for date. | DD.MM.YY |
Tm = 0 | Replay the date only. | |
Tm = 1 | Replay date and time. | HH:MM |
Previous versions of FNKEY did not allow access to the utility program while FNKEY was in replay or record mode, version 3.5 now permits access to the
option so that you may make a recording to swap FNKEY files. A third parameter has been added to the option and controls access to this facility.Al = 0 | Access to the utility program denied (default). |
Al = 1 | Access to | permitted, prompt for backup.
Al = 2 | Access to | permitted, no prompt for backup.
If
is set to 0 an alarm will sound if you try to access the utility program while recording or replay are active.With
set to 1 or 2 you can access the option while in recording mode or during replay (but not both at the same time).To make a recording which will load an FNKEY file :
Start recording, from the top level menu select exe, you will be returned to the top level menu, complete the recording.
, instead of the utility menu appearing you will be prompted for the name of the file you wish to load, type in the file name and pressNote : | While you are in the mode will scroll through the drives on your system. When you press exe, the utility program will test that the file name is valid. however it does not check that the file you have specified exists, nor does it attempt to load the file. | option the hot key and cut and paste keys are disabled, consequently pressing
The action taken when you replay the recording depends on how the
parameter has been set.If
is set to 1 then as soon as replay causes the utility program to be accessed you will be asked whether you wish to backup the current set of key definitions, you must respond to this prompt from the keyboard. Once you have responded to the prompt the FNKEY file will be loaded, the organiser will he returned to the top level menu replay will continue as normal.If
is set to 2 then the backup prompt is bypassed and any casual function key assignments will be lost when the new FNKEY file is loaded.There are rare circumstances in which the current recording (that replayed by pressing mode exe) may be erased as part of the process of loading the new FNKEY file, if this is about to happen you will be warned with an Overwrite prompt, again you must respond to this prompt from the keyboard.
A sensible way to organise say a group of 4 FNKEY files so that each can load another is to proceed as follows :
Two new options
and have been added to the utility menu. The option allows you to exercise greater control over replay speed and provides optional support for the LZ's international character sets.1. Selecting
displays the following screen:Free 26 Pool 364
The top line shows the number of unassigned function keys and the bottom line shows the amount of unused buffer space.
2. Selecting
displays the following menu:Wt=1 Db=0 In=0
The parameters which all take values 0 or 1 are adjusted in the same way as the
parameters.The
parameter controls the replay speed.Wt = 0 | Fast 20 chars per second (CM, XP default). |
Wt = 1 | Slow 10 chars per second (LZ, LZ64 default). |
The
parameter controls what happens during the pause introduced when the is set to slow.Db = 0 | Nothing happens. |
Db = 1 | The ascii code for escape 27(1B) is replayed (LZ, LZ64 default). |
Setting
to 1 should prevent occasional loss of characters during replay (especially when using cut and paste in the notepad), it may however interact with certain third party software applications.The
parameter allows you to select alternative keys for cut and paste.In = 0 | Uses shift left and shift right. |
In = 1 | Uses mode Y (move) and mode Z (copy). |
The default for the
parameter is set according to the language in use when FNKEY is installed.When
is set to 1 you cannot replay function keys Y and Z unless the Cnfg Cp parameter is set to 0.
September 1989
M Leigh
Cubsoft
6 Okeover Rd
Salford
M7 0JX
England
061-792-2871
Note: All rights reserved. You may not copy or reproduce this manual or the Fnkey software in part or in whole without express written permission being obtained from Cubsoft. You are permitted to load and use the Fnkey memory resident software in one machine only at a time. Every effort has bean made to ensure the accuracy of this manual and the correct functioning of the Fnkey software. However, should any error be detected in the manual or in the operation of the Fnkey software, Cubsoft would really appreciate being informed of them. The above notwithstanding, Cubsoft can assume no responsibly for any errors in this manual, defects within the Fnkey software or their consequences and will not in any event be liable for any loss consequential or otherwise arising from the use of the Fnkey software including but not restricted to loss of saved data, loss of programs (in object or source form), loss of profit or loss of contract.
Note: Xbase is a database and diary maintenance package which may be obtained from Cubsoft.
Copyright © 1987-89 CubSoft, 6 Okeover Rd, Salford M7 0JX.
1 Introduction 1.1 Overview 1.2 Memory resident software 1.3 Installation procedure 1.4 Removal procedure 1.5 Menu fixing 1.6 System capabilities 2 Hands On 2.1 Introduction 2.2 The mode key 2.3 Key clicks 2.4 The sample key files 2.5 The date key 2.6 Case inversion 2.7 Punctuation marks 2.8 Pound sign 2.9 Break character 3 Keyboard Macros 3.1 Making a recording 3.2 Replaying a recording 3.3 Saving a recording to a key 3.4 Replaying a saved recording 3.5 Deleting a saved recording 3.6 Deleting all recordings 4 Cut and Paste 4.1 Introduction 4.2 Line mode 4.3 Word mode 4.4 Moving copying & pasting 4.5 New lines 4.6 Multiple operations
5 Viewing Recordings - 5.1 Viewing recordings 5.2 Deleting recordings 6 Using Key Files 6.1 Introduction 6.2 Loading key files - 6.3 Saving key files - 6.4 Backup and restore - back & rest 6.5 The key file directory - 6.6 Deleting key files - 7 Configuration Options 7.1 Introduction - 7.2 The hot key 7.3 Cm and paste 7.4 Key clicks 7.5 Recording buffer - 7.6 Special characters - 8 Compatibility and Error Messages 8.1 The XP and CM 8.2 The LZ and LZ64 8.3 Older versions 8.4 Error messages 9 Quick Reference Chart
The purpose of this introductory chapter is to explain the components of the Fnkey software and describe the installation procedures.
There are four components to the Fnkey software :
This is a short program which you will find on the Fnkey datapack used to install (and remove) the Fnkey memory resident software.
The heart of the Fnkey software package. This program takes over part of the responsibilities of the operating system for handling key strokes.
A memory resident utility program which allows you to save copies of work you have done either for security purposes or as a series of customised setups for use in specific situations. Also permits you to configure certain aspects of the way Fnkey operates.
Three predefined key files are provided for your convenience and are used to illustrate examples in the manual.
The Fnkey datapack which is copy (but not write) protected has about 12K of unused space which you may use to store key files or other data.
Software which may be installed permanently in RAM is termed memory resident software (MRS). Running MRS offers considerable advantages over conventional application software written in OPL:
Both the Fnkey keyboard driver (referred to henceforth simply as Fnkey) and the utility program are memory resident.
To install the Fnkey memory resident software proceed as follows:
The easiest way to do this is by removing any hardware attached to the top slot such as the Comms Link, removing all datapacks an then from the top level menu pressing on/clear once or twice.
You will now be presented with the memory configuration screen from which you can adjust the amount of buffer space available to Fnkey for storing keyboard macros.
Buffers 0 M:2439 421:R
This screen shows the number of additional buffers assigned to Fnkey, the amount of memory used by Fnkey and the amount of space available for storing recording.
Use the arrow keys to adjust the number of buffers allocated and then press on/clear to save the setting.
The default setting allows for individual recordings of up to 31 characters each to be made and can store up to 26 recordings with an average length of 15 characters each.
This setting should be adequate for most purposes, however here are some guidelines for increasing the amount of memory allocated to Fnkey.
A sensible working allocation would be 4 buffers using just under 3K of memory.
Use the following guidelines to choose where to load Fnkey.
The installation process in now complete and you can remove the Fnkey datapack if you wish (you will need it however to access some of the sample key files as you work through the manual).
Fnkey may now be accessed via the mode key as explained in following sections of the manual.
To run the utility program (see Part II) select
from the main menu.To remove the Fnkey memory resident software from your system:
Fix Boot
If you accidentally delete
from the top level menu you will not be able to access the utility program. To remedy this situation:Fix Boot
You can use this method (first deleting
from the menu) to move the position of the utility program on the top level menu.Default: Recordings up to 31 characters. Storage for up to 26 recordings of average size 15 characters (2.4K)
Maximum: Recordings up to 255 characters. Storage for up to 26 recordings of maximum size 255 characters (8.7K)
In this section of the manual we will explain the basic features of Fnkey illustrating some of the principles involved with examples from the key files
and which may be found on the Fnkey datapack. We will also make use of the utility and functions.Fnkey replaces the Psion keyboard driver giving you a much wider range of facilities which you can access directly through the keyboard.
Fnkey is activated by pressing the mode key. Do it now (while at the top level menu) and holding the mode key down.
Note that (a) Nothing appears to happen and (b) there is no key click.
Now release the mode key. Still nothing happens (although Fnkey is now active and waiting for a further key press) but you will hear the key click.
Press and release the mode key. This should open an entry in the top level menu which you can remove by pressing on/clear.
There are two points to be brought out here:
Section 7.2 explains how to temporarily disable Fnkey so that the keyboard works as normal.
Section 7.2 also explains how you can reverse the roles of mode and shift mode so that the mode key works as normal and Fnkey is activated by pressing shift mode.
For the rest of this manual we will assume that the hot key which you will use to activate Fnkey is the mode key.
If you get part way into a command sequence (which is always mode followed by one or two further key presses) you can press on/clear or del to cancel the command sequence.
It is preferable to use del to cancel a command sequence since software which tests the hardware directly for the on/clear key (for example most OPL programs) will detect the press of the on/clear key but not the del key.
When you use the utility program the hot key and the cut and paste keys are temporarily disabled. Pressing mode once in the utility program is equivalent to pressing mode twice when Fnkey is active.
If you try to access the utility program while recording is in progress or during replay an alarm beep will sound.
In order to communicate the success or failure of Fnkey commands which you issue Fnkey makes adjustments to the duration of the key click.
Even if you mute the normal key click a click always sounds for each key press of an Fnkey command sequence.
Select the utility program (exe. This loads the calc file from the Fnkey datapack.
) from the top level menu, select and type in followed byThe calc file contains various mathematical functions (mainly of interest to scientists and engineers) and provides some examples of the use of function keys.
To examine the contents of the file select
. You should see the following display.View A:7 72 ATAN()=
Use the exe key to examine the other function key assignments, then press A to return to the above display.
Press mode to bring up the following display.
View A:7 72 ======5
The recording assigned to the A key is made up two types of character, normal text (shown as = in the second display) and control codes such as on/clear, mode which are shown as = in the first display (5 is the representation for the left key).
Press mode to swap between the display modes. Press on/clear twice to quit the utility program.
Now select mode key and then the A key. "ATAN()" should be displayed with the cursor positioned over the opening bracket ready for you to type in a number and press exe.
from the top level menu and press and release theFor a further example load the prog file, then examine and replay function key F (press mode F). Try pressing a key while replay is in progress (you should get an error beep). Try pressing on/clear during replay (which should cancel replay).
You may have noticed that the key click when you release the A or F keys does not come until replay is complete.
This is deliberate, if you press mode and then a letter and do not get any key click at all (and the keyboard goes dead) you have probably got a deadlock between the application program you are running and Fnkey. Pressing on/clear once or twice (and then Q if the application is an OPL program) will clear the deadlock. Deadlocks are quite rare. The following OPL code is an example of the sort of code which gives rise to a deadlock (no one should write code like this anyway).
test: do until 0 : rem a tight loop which does not test the keyboard.
The only way to break this program is by pressing on/clear and then Q. If you replay a function key while this program is running Fnkey will lock up. The on/clear key will unlock Fnkey. Pressing Q will then break into the OPL code.
Section 3 of the manual explains how you can make your own keyboard macros and assign them to keys A - Z. Section 6 of the manual shows you how to create your own key files.
From the calculator press mode space. The date will be replayed in American format yy-mm-dd.
Use the date key to add the current date when you save records with the top menu
(or Xbase and functions) and when entering data into the notepad (LZ).The choice of American date format is deliberate. If you sort a series of records on a date field in American format (Xbase is good for this) they will automatically sort into correct chronological order.
From the calculator press shift down (to clear the num lock) or use the shift key to type ABCDE...
You will most likely get ABCDE... in upper case.
Now press in sequence:
mode up A mode up B mode up C ...
You should get abcde...
Use shift up (to clear the cap lock) and repeat the above steps. This time you should get abcde... followed by ABCDE...
The moral is mode up followed by a letter A - Z reverses the case of the letter. This is especially useful if you work in lower case and wish to capitalise a name or word.
Again from within the calculator work through the sequences:
mode down A to mode down Z
You should get []{}&\?...
Keys A - Z are paired with punctuation marks as follows:
A B C D E F G H L M N R X Y Z < > ( ) % / = " * , $ - + 0 . [ ] { } & \ ? ` # ' @ _ | ! ^
S (;) with left arrow.
T (:) with right arrow.
1-9 left unchanged.
Section 7.6 of the manual explains how you can assign foreign and special characters to keys 1 - 9 or indeed reassign values to the full range A-Z.
Pressing mode down space replays a pseudo pound sign on the XP and a genuine pound sign on the LZ. See also sections 8.1 and 8.2.
Pressing mode up space replays the break character (a dot on the XP or an accented N on the LZ). Refer to the Xbase manual for further information on use of the break character.
In this example we will create a macro to calculate the Vat on a price. From the calculator type 100*1.15 and press exe to calculate the answer (115).
Note how that with each Vat calculation although the price may vary the *1.15 exe remains the same.
So new type 100 then press mode right to turn on macro recording.
Note how the key click changes. Type *1.15 exe and then press mode right again to stop recording. The key click should return to normal.
You can store up to 31 characters or key strokes (this limit may be expanded to 255 characters as explained in section 7.3) in each recording. If as you type you exceed this limit an error beep will sound, recording mode will be terminated and the key click will revert to normal. The key stokes recorded up to the point where the error beep occurs will be retained in the recording buffer and may be replayed or assigned to a function key in the normal manner.
To replay the current recording press mode exe. Type in an amount and press mode exe to calculate the Vat on it. Try again with a few different amounts.
Note how the recording includes not only the text *1.15 but also the exe key. You can record any of the cursor and other control keys.
Recordings should be replayed in the context in which the were made. The classic example is replaying a recording with O in it such as mode L for LOG (assuming you have loaded the calc file) which can have the effect of turning your machine off (and if there are many O's in the recording it could turn off many times)! Try recording oooo from within the calculator and then replaying it from the top level menu. Devastating isn't it!
Since the next recording you make will overwrite the current one you should assign recordings you wish to use more than once to a function key as explained below.
Pressing mode exe while in recording mode issues an error beep.
Press mode left (a warning beep will sound) and then a letter in the range A - Z. An error beep will sound if there is insufficient room to store the recording.
Press mode left V to assign the Vat recording to the V key and then use the utility option to examine function key V.
You can assign a partially complete recording to a function key (ie. before pressing mode right a second time).
Saving a recording to a function key automatically overwrites any key strokes which have been previously assigned to that key.
Press mode and then the appropriate letter. For example mode V will replay the Vat recording you have just made. Note the key click comes when replay is complete.
If you replay a function key while in recording mode the characters which are replayed are added to the recording buffer. If the buffer becomes full in the process an error beep will sound, recording mode will be cancelled and replay will continue as normal.
Press mode right and then mode right again to create a null recording and then assign the result with mode left to the appropriate function key.
You can also use the utility
option to examine and delete function keys (see section 5.2).To delete all recordings use the utility program
option to load the null file from the Fnkey datapack.Using the key combinations shift left and shift right (see also sections 7.2 and 8.2) Fnkey allows you to copy and move text while editing records, diary or notepad (LZ) entries or OPL programs.
Cut and paste is meant to be used in editing situations and you will get strange (although harmless) effects if you try to cut and paste for example in a menu.
The cut and paste keys do not require use of the mode key and take effect as soon as the left or right key is released even if the shift key is held down. This facilitates multiple cut and paste operations carried out in sequence.
Cut and paste works by adding the character displayed under the cursor to the recording buffer and then either deleting the character (move) or advancing the cursor (copy).
Cut and paste does not always work with application software written by third parties (eg. word processor packages) which sometimes react too slowly and fail to delete the character or advance the cursor before Fnkey is ready to pick up the next (resulting in duplication of characters when you attempt to paste).
You cannot cut and paste while in recording mode. If you press the move (shift left) or copy (shift right) keys an error beep will sound.
You should increase the recording buffer to 255 characters (see section 7.5) in order to gain maximum benefit from cut and paste.
In line mode (the default when you first install Fnkey each copy or move operation picks up characters and adds them to the recording buffer until one of the following events occur:
If you press a key (other than on/clear) while a copy or move is in effect an error beep will sound.
In word mode (see section 7.3 for how to change modes) each copy or move operation picks up characters and adds them to the recording buffer until one of the following events occur:
Press shift left to move text. As the move proceeds the characters under the cursor disappear and text moves in from the left as if you were repeatedly pressing shift del.
Press shift right to copy text. The cursor advances to the right as characters are added to the recording butter.
To paste text press mode exe as if to replay a recording. You can also assign the results of a copy and / or move to a function key in the usual manner.
If you start a copy or move and the cursor is on the last space in a line rather than just add a space to the recording buffer a new line character is appended and then the following line (or first word on the line) is added to the recording buffer.
The new line character is by default exe but can be changed to down or space (see section 7.3).
1. exe | Ideal for OPL programs and the notepad (LZ). Not suited for editing records with | .
2. down | Works well with | but you need to create extra lines before you paste into OPL programs and the notepad (LZ).
3. space | Just picks up what is under the cursor without any special processing. |
When you first start to copy or move the recording buffer is cleared.
Each copy or move appends data to the buffer until either:
This allows you to copy or move a series of words or lines as a single entity, paste them to a new location and then start a fresh cut operation.
Selecting
displays the following screen:View A:7 72 ATAN()·
The current function key, the length of the recording assigned to that key and the total length of all currently assigned function keys are shown on the top line. The bottom line shows the recording with control codes (1-31) shown as ·.
From this screen the following actions are available.
View A:7 72 ······5
Control codes 1-9 are shown as 1-9, codes 10-31 are represented by A-T.
Note in particular the following table:
on/clear | 1 | shift del | 7 |
mode | 2 | del | 8 |
up | 3 | exe | C |
down | 4 | ||
left | 5 | shift exe | D (see section 8.2) |
right | 6 | shift space | E (see section 8.2) |
Ascii code 255 (·) shows as · in both displays. Ascii code 254 appears as a space.
To delete a recording press the del key and then Y to confirm, the size of the current recording will become 0 and the size of the pool increase accordingly.
The utility program provides a number of options which allow you to save sets of function keys as files. By taking advantage of this facility you can:
Function keys are always stored in groups of 26 keys as block files of type 9.
To load a set of function keys select exe key.
from the menu, type the file name and then press theWhen you load a set of function keys any existing definitions will be overwritten! To preserve your existing set of function keys use the backup and restore facilities explained below.
To save the current set or function keys select exe key.
from the menu. Type the file name and then press theIf a file of the same name exists you will be asked for confirmation before the original file is overwritten.
Select
and confirm with Y to save the current set of function keys in a temporary file called A:temp.Select
and confirm with Y to restore the contents of A:temp.To list the key files select mode key and then press exe to scroll through the directory.
from the menu, select a drive with theTo delete a key file select exe key. You will be asked for confirmation before the file is erased.
from the menu, type the file name and then press theSelecting
displays the following menu:Fn=1 Cp=1 Ln=1 Sh=0 Mu=0 Ky=0
Each parameter takes values 0, 1 (and 2 in the case of Cp and Ln). To adjust a parameter simply press the first letter of the option, for example pressing F toggles Fn between 0 and 1, pressing C repeatedly cycles Cp through values 1, 2, 0 and back to 1.
Once you have adjusted the parameters to the values you require press on/clear to save the new settings and return to the menu.
Parameters Fn and Sh control the action of the hot key.
Setting Fn to 0 disables Fnkey completely, the key board will work as if Fnkey were not installed. The duration of each key click is however still under the control of Fnkey and will be in accordance with the current setting of Mu and Ky.
Setting Sh to 1 causes the mode key to act as normal and Fnkey to be activated by pressing shift mode.
The Fnkey command sequences are debounced in such a way that the shift key is ignored so that you do not have to release the shift key between the key strokes which make up a command. For example to replay the current recording (with Sh = 1) press shift mode then release the mode key and press exe. As soon as you release the exe key replay will start even if you have not yet released the shift key.
Parameters Cp and Ln control the action of the cut and paste keys.
Cp = 0 | cut and paste disabled, shift left and shift right passed unmodified to the operating system (see 8.2). |
Cp = 1 | cut and paste in line mode. |
Cp = 2 | cut and paste in word mode. |
Ln = 0 | space is used for the newline character. |
Ln = 1 | exe is used for the new line character. |
Ln = 2 | down is used for the new line character. |
Parameters Mu and Ky control the duration of the key click.
When Mu is set to 0 the key click is turned off for key codes which have been passed back through Fnkey unmodified.
Setting Ky to 1 doubles the length of the normal key click.
Selecting
(maximum recording length) displays the following screen:Buff 0 30 Pool 390 0
The top line shows the number at additional 32 byte buffers and the total length of the recording buffer. The bottom line shows the amount of space available for storing function key definitions and the length of the current recording.
To increase the length of the recording buffer in units of 32 characters (up to a maximum of 7 units or 254 characters) press the exe key. Use the space key to reduce the size of the recording buffer. Once you have set the buffer to the required size press on/clear to save the setting and return to the menu.
If you intend to make more than occasional use of the cut and paste facilities you should set the buffer to its maximum size.
Selecting edit displays the following screen:
Edit A: 91 &5B [[[[[[[[[[[[[[[[
This display shows the current mode down letter to edit together with its ascii code in decimal and in hex with the actual character echoed on the bottom line.
Note: | ascii codes 1-31 (control codes), ascii code 254 (and on the XP ascii codes 128-159) echo as spaces. See also sections 8.1 and 8.2 below. |
Ascii codes in the range 128-159 (80-9F) display as spaces on the CM and XP. In particular code 156 (9C) which represents a genuine printable pound sign displays as a space.
The pseudo pound generated by mode down space is ascii code 237 (ED) and is for display purposes only, it will not print as a pound sign. You can however use the Comms Link setup parameters (for receiving data) and (for transmitting or printing data) to convert this code to 156. On some printers the hash sign # ascii code 35 (23) will print as a pound sign.
Ascii codes in the range 128 - 159 (80 - 9F) display as spaces on an LZ when running software in XP emulation (two line) mode. In particular code 156 (9C) which represents a genuine printable pound sign displays as a space.
In addition to the normal control codes the following have meaning in certain circumstances an the LZ.
ascii code 14 (0E) | generated by pressing shift exe while viewing data with (to scroll backwards). |
ascii code 15 (0F) | generated by pressing shift space while editing data using (to split lines). |
Ascii code 15 is a useful code since it also works to split lines when editing records from within Xbase and can be used as an alternative to the break character although it can never generate more than 16 lines in a record.
While cut and paste are enabled (Cp = 1 or 2) you cannot obtain access to foreign characters using the LZ shift right key sequence. You can of course still use the Fnkey mode down A-Z key sequence to obtain any punctuation, foreign or special characters which have been defined using the edit option.
In order to attain a high level of compatibility with the LZ it has been necessary to introduce a deliberate delay during the replaying of key strokes and while cutting and pasting text. Fnkey runs about twice as slowly as version 2.2 in debug mode, roughly 32 times slower than Fnkey 2.2 in default mode or versions 2.0 and 2.1.
Fnkey files saved with earlier versions of Fnkey are fully compatible with the key files generated by
and with the proviso that soft and hard pauses will be interpreted as ascii codes 128 and 129.The following error messages may be generated during the installation and / or removal process:
Generated if you try to remove or fix a version of Fnkey using a chip with a different version number to the version already installed. For certain versions of Fnkey the alien software message may be generated instead.
Generated if you try to install or remove Fnkey while devices drivers are installed.
Generated if you try to remove Fnkey while other memory resident software is present in the same memory partition at a higher address or has taken control of the keyboard interrupt vector.
Generated if you try to run the key installation program from the calculator, the
menu or from within an OPL program.You should never get this error. If it does occur save all files, programs, the diary etc. to a datapack or RAM pack and reset your Organiser.
mode mode (or shift mode) | Actions mode |
mode up A - Z | Case inversion |
mode up space | Break character |
mode down A - Z | Special characters |
mode down space | Pound sign |
mode left A - Z | Assign to function key |
mode right | Toggle record mode |
mode space | Date key |
mode A - Z | Replay function key |
mode exe | Replay / Paste |
shift left | Move |
shift right | Copy |
mode on/clear
mode up on/clear
mode down on/clear
mode left on/clear
mode del
mode up del
mode down del
mode left del