v7.5
自己インストール イベント プラグインを生成するために使用可能なイベント ウィザードのインスタンスを作成します。生成されたウィザードは、シーン ルートの下に置かれる SDK ウィザード モデルの下にネスト化された CustomProperty です。
oReturn = CreateEventWizard( [DestinationDir] ); |
CustomProperty オブジェクトとして新しく作成されたイベント ウィザード
| パラメータ | タイプ | 説明 |
|---|---|---|
| DestinationDir | 文字列 |
生成するプラグインが保存されるフォルダ。 デフォルト値:保存先フォルダが指定されていない場合は、ウィザードのプロパティがユーザ パスに作成されます。 |
/*
This example demonstrates how to create an event wizard using
the CreateEventWizard command and then generate a very simple
custom event using the new wizard.
*/
var eventwiz = CreateEventWizard();
eventwiz.PluginName = "XYZEventPlugin";
eventwiz.FileName = eventwiz.PluginName.Value;
eventwiz.ScriptLanguage = "JScript";
eventwiz.siOnKeyUp = true;
eventwiz.siOnKeyUpName = "XYZOnKeyUpEvent";
// Generates the XYZOnKeyUpEvent implementation and plug-in
GenerateEventPlugin(eventwiz);
var ev = Application.EventInfos("XYZOnKeyUpEvent");
Application.LogMessage(ev.Name);
// Expected results:
// INFO : XYZOnKeyUpEvent |