Python addMenuButton

Hi ! Friends:
I want to create a button in the menu.
I found this command(addMenuButton), but I don’t seem to be sure of its format or usage。So I need your help, thanks.

Hi @tangtang

Have you already checked the Academy tutorial for addManuItem? I think it’s helpful.

I know that addManuItem, I just want to add a button by addMenuButton. Not that style(addManuItem). Thank you.

The parameters should pretty much be the same as in the addMenuItem. I tested with the following code in the file and it seems OK.

from vcApplication import *

def OnStart():
  cmduri = getApplicationPath() + ''
  cmd = loadCommand('cmdHello', cmduri)

Good. It must be used with VC4.3. Thank you.