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. ====== RegisterCommandListener ====== Method of [[:scripting:api:application:start|IApplication]] ===== Description ===== Register listener for existing command by name ===== Parameters ===== * [[scripting:api:data-type:BSTR|BSTR]] **strName** * [[:scripting:api:command-handler-listener:start|ICommandHandlerListener]] **pCommandHandlerListener** ===== Syntax ===== ==== JavaScript ==== <code javascript> Application.RegisterCommandListener(strName, pCommandHandlerListener); </code>==== Visual Basic Script ==== <code vb> Application.RegisterCommandListener strName, pCommandHandlerListener </code>==== C++ ==== <code cpp> HRESULT hr = Application.RegisterCommandListener(strName, pCommandHandlerListener); </code>===== See Also ===== [[:scripting:api:application:start|IApplication]] ~~NOTOC~~