sakura/en/PPA Macro and WSH Macro

Last-modified: 2008-03-29 (土) 16:16:08

PPA Macro and WSH Macro

Here, each information of PPA and WSH is described.

PPA Macro

In PPA, character string type variable UserErrorMes for debugging can be used.
The content of this variable is displayed in the message box displayed to write it in this variable when PPA returns the error. (sakur:1.4.2.0 or later)

It can be distinguished whether it is a cherry editor to execute the macro when follow is used. (sakura:1.4.2.0 or later)

IsDefine( 'sakura-editor' );

Should sakura:1.4.2.0 from now on and PPA.DLL ver1.23 or more.
PPA.DLL ver1.0 is necessary in former sakura.

NUL cannot be included with PPA in the character string type. When NUL is included in the selection character string, it can access only this side of NUL.

[hatena] Hint:
$41 in the macro of PPA etc. The use of the hexadecimal number mark and the variable, the expression, and the function is also possible.
The character string is bundled by a single quotation, and the single quotation character is described ''. The character of \ is \.

WSH Macro

It is necessary to install WSH.
It is installed by the standard with WSH the abbreviation of Windows Scripting Host, and since Windows 98.
If another of ".vbs", ".js" and the engine of the addition are installed, it might be able to be used.
However, there seem to be an environment and an engine that doesn't work normally about the problem on the editor side.
The object of the Sakura-Editor is Editor.

The WScript object cannot be used because it is unpublished.
The WScript.Shell object etc. suddenly : because it cannot use it.
Please acquire and use the object with CreateObject/ActiveXObject.
Moreover, Editor of the cherry editor is not good at CreateObject with WScript.exe etc.