Overriding the Rightclick Menu of Macroscript buttons

Has anyone ever done this? I’ve been through the docs pretty thoroughly in my time, but I’ve never seen anything that remotely suggests that this is possible.