scripting:api:menu-object:get-command

GetCommand

Method of IMenuObject

Returns command handler from position

var ppHandler = MenuObject.GetCommand(nPosition);

==== Visual Basic Script ====

ppHandler = MenuObject.GetCommand nPosition

==== C++ ====

CComPtr<ICommandHandler> pHandler;
HRESULT hr = MenuObject.GetCommand(nPosition, &pHandler);

===== See Also ===== IMenuObject