RegisterCommandListener

Method of IApplication

Register listener for existing command by name

JavaScript

Application.RegisterCommandListener(strName, pCommandHandlerListener);

Visual Basic Script

Application.RegisterCommandListener strName, pCommandHandlerListener

C++

HRESULT hr = Application.RegisterCommandListener(strName, pCommandHandlerListener);