テーマ:未分類(甘党)

日々、思いついたことを記録します。

[秀丸エディタ TIPS]NewScheduleToCybouz3.mac作成中

2007年05月04日 23時22分21秒 | 秀丸エディタ Tips
今日は、マクロづいていて、勢い余って、以前から、切望しているサイボウズ3への新規予定追加を楽にするための秀丸エディタのマクロを作り始めたのですが、ぼちぼちしか、進みません。

今日のところは、1行目が、yyyy/m/d hh:mm hh:mm (年月日 開始 終了)の形式を、秀丸エディタで、取り込むところまでしかできませんでした。

-------------

question("サイボウズ3の「スケジュールの登録」画面を開きます。n1行目が、yyyy/m/d hh:mm hh:mm (年月日 開始 終了)の形式ですか?");
if (result == yes) {
//先頭に
gofiletop;
//SetDate.Yearの取り込み
selectword;
copy;
beginclipboardread;
$SetDate_Year = getclipboard;
//SetDate.Monthの取り込み
wordright;
selectword;
copy;
beginclipboardread;
$SetDate_Month = getclipboard;
//SetDate.Dayの取り込み
wordright;
selectword;
copy;
beginclipboardread;
$SetDate_Day = getclipboard;
//SetTime.Hourの取り込み
wordright;
selectword;
copy;
beginclipboardread;
$SetTime_Hour = getclipboard;
//SetTime.Minuteの取り込み
wordright;
selectword;
copy;
beginclipboardread;
$SetTime_Minute = getclipboard;
//EndTime.Hourの取り込み
wordright;
selectword;
copy;
beginclipboardread;
$EndTime_Hour = getclipboard;
//EndTime.Minuteの取り込み
wordright;
selectword;
copy;
beginclipboardread;
$EndTime_Minute = getclipboard;
}
else {
//SetDate.Yearの取り込み
$SetDate_Year = str(val(year));
//SetDate.Monthの取り込み
$SetDate_Month = str(val(month));
//SetDate.Dayの取り込み
$SetDate_Day = str(val(day));
//SetTime.Hourの取り込み
$SetTime_Hour = str(val(hour));
//SetTime.Minuteの取り込み
$SetTime_Minute = str(val(minute));
//EndTime.Hourの取り込み
$EndTime_Hour = str(val(hour));
//EndTime.Minuteの取り込み
$EndTime_Minute = str(val(minute));
}

debuginfo "$SetDate_Year=" + $SetDate_Year + "x0a";
debuginfo "$SetDate_Month=" + $SetDate_Month + "x0a";
debuginfo "$SetDate_Day=" + $SetDate_Day + "x0a";
debuginfo "$SetTime_Hour=" + $SetTime_Hour + "x0a";
debuginfo "$SetTime_Minute=" + $SetTime_Minute + "x0a";
debuginfo "$EndTime_Hour=" + $EndTime_Hour + "x0a";
debuginfo "$EndTime_Minute=" + $EndTime_Minute + "x0a";

endmacro;



最新の画像もっと見る

コメントを投稿