To create a global script, go to Tools > Menus > User Plugin > Add
Name – Name of the script
Control – MainMenu (required to use MainMenu control)
Class name – Class name of the script
Then click on Add script.
Below is an example of the script:
Click on Save.
As per the example :
When we changed company | When we clicked on menu buttons |