How to access the midi setup window from inside a patch?

ben sonic's icon

I’m just building a standalone with a customized menubar with the menubar object.

When enabling the menubar in a standalone, the standard midi setup window disappears. Disabling the menubar let the midi setup window appear again.

I would like to open the midi setup window in conjunction with the menubar object, but then I need to know, how to open the midi setup window inside a patch, similar to the audio status window. Is this possible?

Source Audio's icon

message
;
#SM open

should open the midi setup window

ben sonic's icon

Great. That's it. Thank you.