Property

Method

Event

 

 

OnCommand

Invoked before the selected command is executed. This event is invoked only when "Command" is set to "Yes" in the [Event] category of the initialization file.

Syntax

    void OnCommand(
    BSTR cmdstr,
    VARIANT* finished
    );

Parameters

cmdstr

[in] Keyword of the command

finished

[in, out] Whether to execute the command.

0

Executes the command.

others

Doesn't execute the command.

 

Sample Codes

VBScript

sub wec_OnCommand(cmdstr, finished)
if cmdstr="fileopen" then
    finished = false
   end if
end sub