for automation I would like to have an command for closing the Customize window, corresponding to the buttons "OK" and "CANCEL", e. g. Prefs CUSTOMIZE=ok/Prefs CUSTOMIZE=cancel
And the mnemonics (underlined alphanumeric character, combinations [Alt+_]) for both buttons are missing (&OK/&Cancel). I could use those for sending keystrokes with automation as a short term solution.
If you're using automation, presumably you're already clicking on buttons or sending keys to the dialog as it is? Is there a reason you need explicit commands for this instead of doing the same for the OK or Cancel buttons?
They aren't missing. It would be non-standard to give OK and Cancel accelerators, because Return and Esc already push them default (unless a control has focus which takes return; e.g. a multi-line edit control). Have a look in any standard Windows dialog, like the Properties dialog of Explorer's Folder Options dialog to see that OK and Cancel do not normally have accelerators.
If you're doing automation, those buttons (almost) always have standard IDs: IDOK = 1, IDCANCEL = 2. You can use those IDs to push them from automation software.
(If a dialog only has an OK button which just closes the dialog without doing anything, it will sometimes use IDCANCEL for that.)
many thanks for your comprehensive answer. Of course you are right! I have found a solution meanwhile, but it's not so smooth compared to an DOpusRT command. It's ok.