|
追加していただいたStartDoGrep関数ですが、YenEncode関数と組み合わせると(?)
どうもうまく動かないようです。
「tkinfo.dllのDoGrepのパラメータがおかしいです。」というメッセージが出て、
さらにもう1回マクロを実行しようとすると保護違反で落ちたりします。
以下の簡単なマクロで再現します。
普通のDoGrepでやっていたときは問題なく使えていたマクロですが、
使い方の間違いやまずい点などあればご指摘お願いします。
------------------------
loaddll "TKInfo.dll";
$search_word = input( "本文検索" );
if( $search_word == "" ) endmacro;
$search_account = dllfuncstr( "CurrentAccount" );
$search_folder = dllfuncstr( "CurrentFolder" );
$search_word = dllfuncstr( "YenEncode", $search_word );
#n = dllfunc( "SetFindPack", "(\"" + $search_word + "\", target=body), inmai
l=0" );
#n = dllfunc( "StartDoGrep", $search_account, $search_folder );
endmacro;
|
|