broadcastDescription:
The broadcast executor is used to broadcast a named message and optional value to command sets and commands that might be listening to broadcast messages.
Parent: execute, then, else
Value (simple form): string specifying the name of the broadcast message
Value (key/value form):
broadcast: string, required, specifying the name of the broadcast messagevalue: any, optional, specifying a value to accompany the broadcast messagescope: string, optional, specifying the scope of the broadcast message (default: local)
local broadcast messages will only be sent to commands in this command setglobal broadcast messages will be sent to all commands in all command sets# simple form
- broadcast: (string)
# simple example
- broadcast: fileDeleted
# key/value form
- broadcast: (string, required)
value: (any, optional)
scope: (string, optional)
# key/value example
- broadcast: fileDeleted
value: '{folders.desktop}\favorites.txt'
EXAMPLE
# broadcasts a message to other commands, and hosting application
commands:
- triggers:
- phrase: open door
execute:
- speak: opening door
- broadcast: door.open
Status: ✅ IMPLEMENTED (caveats: scope not yet functional, acts like global)