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. ====== CommandListener ====== Constructor of CommandListener object as method of [[:scripting:api:script-application:start|IScriptApplication]] ===== Description ===== Command listener constructor ===== Parameters ===== * [[scripting:api:data-type:VARIANT|VARIANT]] **onBeforeExecute** * [[scripting:api:data-type:VARIANT|VARIANT]] **onAfterExecute** (optional) ==== Return Value ==== * [[:scripting:api:script-command-handler-listener:start|IScriptCommandHandlerListener]] **ppCommandHandlerListener** ===== Syntax ===== ==== JavaScript ==== <code javascript> var ppCommandHandlerListener = new CommandListener(onBeforeExecute, onAfterExecute); </code>==== Visual Basic Script ==== <code vb> ppCommandHandlerListener = ScriptApplication.CommandListener onBeforeExecute, onAfterExecute </code>==== C++ ==== <code cpp> CComPtr<IScriptCommandHandlerListener> pCommandHandlerListener; HRESULT hr = ScriptApplication.CommandListener(onBeforeExecute, onAfterExecute, &pCommandHandlerListener); </code>===== See Also ===== [[:scripting:api:script-application:start|IScriptApplication]] ~~NOTOC~~