RegisterCommand

Method of IApplication

Register new command

Return Value

JavaScript

var pnID = Application.RegisterCommand(pCommandHandler, strShortcut);

Visual Basic Script

pnID = Application.RegisterCommand pCommandHandler, strShortcut

C++

long nID;
HRESULT hr = Application.RegisterCommand(pCommandHandler, strShortcut, &nID);