Any way to add a toggle switch to a custom button?

I’d like to have it so that every other press on a button switches between two different commands:

Is this possible in any way?

Not like this it won’t.
I believe you’ll have to create a script then launch that script from the button.

I see 3 possible ways:

  1. One is using UserText attribute
  2. Using the sticky dictionary
  3. Using events.

Added to the pile as