scripting:api:application:register-command

RegisterCommand

Method of IApplication

Register new command

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

==== Visual Basic Script ====

pnID = Application.RegisterCommand pCommandHandler, strShortcut

==== C++ ====

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

===== See Also ===== IApplication