|
エイトさん,こんにちは。
》 当方は複数アカウントで鶴亀メールを利用しております。
》 今いるアカウントから他方のアカウントに移る時、マクロ等により
》目的のアカウントに移動することは可能でしょうか。
次のようにすれば,一応できるとは思います。
//-------------------------------------------------------------
//アカウント名の取得と指定
loaddll "TKInfo.dll";
#i = 0;
while( 1 ) {
$Account[#i] = dllfuncstr( "Account", #i );
if( $Account[#i] == "" ) break;
#i = #i + 1;
}
menuarray $Account, #i;
#a = result;
#n = dllfunc( "SelectFolder", $Account[#a - 1], "" );
endmacro;
//---------------------------------------------------------
》 "受信"フォルダ内に存在するフォルダ名を全て取得できる
》ようなマクロは、どのように実現するのでしょうか。
これはひろさんの言われるように,田楽DLLなどを使った方が現実的だとは
思いますが,スピードを気にしないならば,次のような方法もあります。
//---------------------------------------------------------
//アカウント内のフォルダ名を全部取得
loaddll "TKInfo.dll";
$s = dllfuncstr( "CurrentAccount" );
#n = dllfunc( "SelectFolder", $s, "" );
if( !dllfunc( "NextFolder" ) ) endmacro;
#i = 0;
disabledraw;
$folder[#i] = dllfuncstr( "CurrentFolder" );
while( 1 ) {
#i = #i + 1;
if( !dllfunc( "NextFolder" ) ) break;
if( dllfuncstr( "CurrentAccount" ) != $s ) break;
$folder[#i] = dllfuncstr( "CurrentFolder" );
if( $folder[#i] == $folder[#i - 1] ) break;
#n = dllfunc( "ExpandFolder", 1 );//サブフォルダ名も取得
//#n = dllfunc( "ExpandFolder", 0 );//サブフォルダを除く
}
menuarray $folder, #i;
//---------------------------------------------------------
では, (^^)/~
山紫水明
|
|