====== RegisterCommand ====== Method of [[:scripting:api:application:start|IApplication]] ===== Description ===== Register new command ===== Parameters ===== * [[:scripting:api:command-handler:start|ICommandHandler]] **pCommandHandler** * [[scripting:api:data-type:BSTR|BSTR]] **strShortcut** = %%""%% (optional) ==== Return Value ==== * [[scripting:api:data-type:long|long]] **pnID** ===== Syntax ===== ==== 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); ===== See Also ===== [[:scripting:api:application:start|IApplication]] ~~NOTOC~~