Hide CommandManager (F10) with api

Hi Forum,

I have been look all over the Internet the entire morning for some API that hides the entire CommandManager (equivalent to to pressing F10), but was unable to find anything. Does one of you guys know what API to use?

Thank you in advance

Kind regards

Lasse

SolidworksApi macros