It's not going to check if notepad.exe is running non-stop. That would cause performance issues.
You can use @toggle:update (or similar via the scripting API) to make toolbar buttons refresh themselves in addition to the times they do it automatically, but there's no way to know when something outside of Opus launches notepad.exe, for example.
I want a few menu buttons on my toolbar to deactivate when a program (e.g. notepad.exe) exits and re-enable when the same program is running.
Is there a way to refresh the toolbar from DopusRT? Then i could use Autohotkey to monitor for the running program, and a DopusRT command to refresh this particular toolbar.
I could not find Toolbar argument that refreshes the toolbar without disabling and re-enabling it.
Perhaps a future version could Refresh the toolbar when UPDATE is invoked, or alternatively, a separate REFRESH argument could be created.