Editor macro script how to develop shortcut one-click call?

Editor macro script how to develop shortcut one-click call