Braina Forums

Braina Assistant => Braina Tips & Scripts Sharing Area => Topic started by: jrsofsd on Dec 04, 2022, 08:49 PM

Title: INI File Format for Sharing Custom Commands and Aliases
Post by: jrsofsd on Dec 04, 2022, 08:49 PM
I propose that Braina use the industry standard INI file format to store and share user data, like custom commands and aliases. See INI file (https://en.wikipedia.org//wiki/INI_file)

When Braina starts it would read all INI files in the (new) "%appdata%/Brainasoft/Braina/Ini/" folder.

This change would have obvious benefits:


Example - my "task switch.ini" file with 3 custom commands (tv = Task View) would look like this:

[Custom Commands]
tv=press @{TAB}
back=press %({TAB})
double back=press %({TAB}{DELAY 400}{TAB})

Note that a complete INI file would contain all 3 sections:

[Custom Commands]
[Voice Recognition Aliases]
[Custom Replies]

This change would require new code to handle duplicate command/alias names. The user should have the option to rename one of the duplicates, or choose which to use (Braina would have to remember the choice). As a developer I understand that writing new code instead of fixing bugs is a difficult choice. However if Braina is to become the great product that it's visionaries imagined, it needs to continuously grow.  8)