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, and shortcut.
switchesis defined in the form of a list, such as[$switch_1, $switch_2].nameis a string containing the title of the programmodeis simply theMODEwritten out with the$at the startrepeatis set to eitherON,OFF, or a positive integershortcutis characters with no spaces
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
}