揮発性のメモ2

最近知った知識を さも昔から知ってた風にメモ書きしていく

秀丸メールでエンコードされたメールをデコードして読む

loaddll "tkinfo.dll";

// 選択されてなければ終了
if(selecting==0) exit;

// 選択範囲をデコードする
$s = gettext(seltopx, seltopy, selendx, selendy, true);
$d = dllfuncstr("DecodeHeader", $s);

message $d;

秀丸マクロで登録しておくと、エラーメールなどでデコードされてない生のメールのタイトルが読みやすくなる

seltopx 範囲選択開始位置の x座標
seltopy 範囲選択開始位置の y座標
selendx 範囲選択終了位置の x座標
selendy 範囲選択終了位置の y座標
gettext() 文字列取得
DecodeHeader() 文字列のデコード

参考:http://homepage2.nifty.com/jr-kun/hidemaru_qa/3_string.html