cw_run_command
Executes a Cakewalk SONAR menu command by numeric ID via WM_COMMAND, enabling version-independent automation and detection of whether the command was handled.
Instructions
Run a SONAR menu command by numeric id via WM_COMMAND. Version-independent: works on any build whose menu exposes the command. Get ids from cw_list_commands. Returns whether the window list changed, so a registered-but-unhandled command is distinguishable from a working one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cmdId | Yes | Menu command id, e.g. 34861 (0x882D Preferences) | |
| confirm | No | Required for destructive ids (0xE102 File > Close, 0x853D Revert). Pass "close" or "revert" to acknowledge | |
| keepOverlays | No | Do not close modal panels first |