ID:2172944
 
How do I enable/disable a player's macro list
winset(src,"macro","is-disabled=true")
winset(src,"macro2","is-default=true")
It's better to not do so, and just refuse inputs at the server level when a certain modal state is entered.

However, you can disable the macro set by simply setting the windows' macro parameter to null with winset().

winset(client or mob,"windowid","macro=\"\";")
In response to Ter13
oh thanks