Sakura-Editor Macro Reference

S_IsInsModeの使用例

//sample.js
//挿入・上書きモードを調べる
var oWsh = new ActiveXObject("WScript.Shell");
if (IsInsMode) {
    oWsh.Popup("挿入モードです", 0, "Message", 0);
} else {
    oWsh.Popup("上書モードです", 0, "Message", 0);
}
//sample.ppa
if S_IsInsMode then
    MessageBox('挿入モードです', '挿入/上書き', 0)
else
    MessageBox('上書きモードです', '挿入/上書き', 0)
;