How to close messagebox by python script?

Hello
I’m trying to create objects by using python scripts automatically.
But python programs stop when a message box appears.
Is there a way to close a message box automatically or not to show one?
I don’t know which commands will produce a message box or not, so I would like to know which ones can be used with many commands.

Enviroment
Rhino Version:7
Windows 10
Python: 3.8.5

You can use the _-Command syntax to give the parameters from code instead of from the Rhino form if you’re calling commands like Rebuild, Find Text and so on

1 Like

@farouk.serragedine
Thank you for your comment!
I understand what the command with hyphen means. I’ll give it a try!