Show pageOld revisionsBacklinksAdd to bookBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== 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 ==== <code javascript> var pnID = Application.RegisterCommand(pCommandHandler, strShortcut); </code>==== Visual Basic Script ==== <code vb> pnID = Application.RegisterCommand pCommandHandler, strShortcut </code>==== C++ ==== <code cpp> long nID; HRESULT hr = Application.RegisterCommand(pCommandHandler, strShortcut, &nID); </code>===== See Also ===== [[:scripting:api:application:start|IApplication]] ~~NOTOC~~