Action - UNC-Project-Open-AAC/OS-DPI GitHub Wiki

Action is a component that may be added within the Actions tab panel. An Action is an event that occurs when changes to the State match any programmed Conditions. For example, when a CLEAR button is pressed the State of the display window is changed to have the contents erased, when the Condition of button text = ‘CLEAR’ matches.

Screenshot 2023-04-14 at 11 48 33 AM

Example Declarative Programming for Common Actions


Origin Condition State New Value
grid #label = 'Speak' $Speak $Display
space   $Display add_letter('')
keyboard   $prefix add_letter(#label)
  $Display add_letter(#label)
predict $prefix $Display$prefix replace_last(#label + ' ')''

Origin refers to where the action originates in the design (e.g., layout, grid, homepage).

Note: The rule is the first action in the list always wins. In the screenshot below, the Action that uses #pronounce must be listed first, otherwise the first action of speaking the label (i.e., “it”) will be triggered.

Screenshot 2023-05-01 at 2 18 19 PM

Backlinks

⚠️ **GitHub.com Fallback** ⚠️