Keep Pause running in Macro

Well, one example :

Then you look there
Screenshot 2021-05-08 at 10.50.28

Then Pascal answer this

Where is it explained that such an option is Macro scriptable and if so, how to write it ?

How can we guess that an option called Only snap to selected objects can used as a macro ?

How can we guess that is has to be written like this _OnlySnapToSelected and not like this _OnlySnapToSelectedObjects ?

What are the rules ? This is not well explained online …
Just an example.

Regards
Rodolfo Santos