Disable mouse clicks in SolidWorks with the api or some setting

Hello!

Anyone knows how to disable mouse clicks inside a SW window?

I would like to disable the user interaction with SolidWorks while I'm running a macro, so clicking with the mouse on a model won't interfere with the macro.

Thanks

SolidworksApi macros