Home | About Us | In-Circuit Test | Functional Test | Tutorials, Software, etc | Fixtures | Contact Us
Hartman Associates
BT Basic Softkeys

Learn how to program and restore the BT Basic softkeys

Softkeys may be programmed from within a BT Basic program or from the BT Basic Command Line.

The syntax for programming a BT Basic softkey is:

softkey #,"mode","label","text"

where

# is the softkey number (1-8)

mode is e, t, or r

e defines the key as an executable command
t defines the key as an unterminated text output
r defines the key as a text output follow by a carriage return

label is the text to appear in the softkey area. Maximum of 16 characters.

text is the valid BT Basic command, if assigned mode e, or the text to be displayed in mode t or r.

Examples

softkey 8,"e","List","list"
Softkey number 8 label changes to "List". Press softkey F8
to list the program currently in the BT Basic Workspace.
softkey 8,"t","List","list"
Softkey number 8 label changes to "List". Press softkey F8
to display the text "list" leaving the cursor at the end of
the text. Pressing again will append another "list" at the
end of the previous text.
softkey 8,"r","List","list"
Softkey number 8 label changes to "List". Press softkey F8 to
display the text "list" followed by a linefeed & return.

Restoring Original Softkey Values

Executing a "softkeys off" or "softkeys clear" in a BT Basic program or on the BT Basic Command Line will return the softkeys to the default value for the BT Basic Window. An individual softkey may be returned to its default setting using the "softkey # clear" command is executed. (# is the softkey number 1-8).

Saving and Loading Softkey Settings

The current set of softkeys may be saved to a file for retrieval from the BT Basic Command Line or installation under BT Basic program control. To save the current softkey setting within a BT Basic program or from the BT Basic Command Line execute "softkeys to newfilename" or "softkeys over existingfilename".

You're right! By implication, if we can save the softkey settings, we must be able to load the softkey settings. To load a set of saved softkeys from within a BT Basic program or from the BT Basic Command Line execute "softkeys from softkeyfilename".

Copyright © 2005 Hartman Associates