LoginSignup
0
1

More than 3 years have passed since last update.

sakura editor scripts

Posted at

sakura editorのスクリプト例

実行日の日付を出力後、改行、タブを出力してスクリプト終了。
実行例:
09月02日(月)
□⏎

date.js
var dt = new Date();
var year = dt.getFullYear();
var month = ("00" + (dt.getMonth()+1)).slice(-2);
var day = ("00" + (dt.getDate())).slice(-2);

var week = dt.getDay();
var weekString = ["日","月","火","水","木","金","土"][week];
var today = month + "月" + day + "日" + "(" + weekString + ")";

Editor.InsText(today + "\n");
Editor.InsText("    ");

タブを出力する。

tab.mac
//キーボードマクロのファイル
S_IndentTab(0); // TABインデント

改行コードを出力する。

rtn.mac
//キーボードマクロのファイル
S_Char(13); // 文字入力

以上

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1