There are basically two ways to set or create groups and items. One way is to manually set the current group and then set the value or string of an item within that current group.
Code:
* Upon pressing "Enter"
ini_plus_plus : Set current group to "Group Name"
ini_plus_plus : Set item "Item Name" to value 1 (Setting = 0)
The other way is to set the value or string of an item within a group all at once in a single action, without using a separate action to set the current group.
Code:
* Upon pressing "Enter"
ini_plus_plus : Set item "Item Name" in group "Group Name" to value 1 (Setting = 0)
If you want to do something like set the value of a counter to the value of an item in the INI, there are several ways to do it. The first way is to manually set the current group and then get the item value or string from the current group. (In the example below, 0 is the default value that will be returned if it cannot find the item name specified.)
Code:
* Upon pressing "Space bar"
ini_plus_plus : Set current group to "Group Name"
Counter : Set Counter to GetItemValueG( "ini_plus_plus", "Item Name", 0 )
A second way of doing this is to get the item value or string from a specifically specified group.
Code:
* Upon pressing "Space bar"
Counter : Set Counter to GetItemValue( "ini_plus_plus", "Group Name", "Item Name", 0 )