SETTINGS
The <SETTINGS>
section allows you to add optional metadata which is used by the simkey-app
. This includes the title, as well as by default what SWITCHES
are on, which MODE
is selected, and how many times the program should repeat.
So, you can set these attributes under it: switches
, mode
, repeat
, name
.
switches
is defined in the form of a list, such as[$switch_1, $switch_2]
.name
is a string containing the title of the programmode
is simply theMODE
written out with the$
at the startrepeat
is set to eitherON
,OFF
, or a positive integer
As you can see most of the metadata is about default options which can be overriden in the app. Here's an example of a program that defines all of these:
<SETTINGS>
name = "Click A!"
mode = $UPPERCASE
switches = [$jump, $walk]
repeat = 5
<MODES>
# Capital or not #
$UPPERCASE
$LOWERCASE
<SWITCHES>
# Things to do first #
$jump
$walk
<MACRO>
# Handle switches #
@if $jump {
[SPACE]
}
@if $walk {
<1000>w
}
# Use mode to decide #
@if $UPPERCASE {
A
}
@else {
a
}