|
いま実験してみました。以下のようなマクロで行けると思います。
// 「すべて送受信系の対象アカウント」設定マクロ
//
// 対象とするアカウント名(列記する)
$account[0] = "biglobe";
$account[1] = "nifty";
$account[2] = "freecom";
loaddll "tkinfo.dll";
#i = 0;
while (1) {
$AccountName = dllfuncstr("Account", #i);
if ($AccountName == "") break;
#j = 0; #hitflag = false;
while (1) {
if ($account[#j] == "") break;
if ($account[#j] == $AccountName) {#hitflag = true; break;}
#j = #j + 1;
}
#n = dllfunc("LoadAccountProp", $AccountName);
if (#hitflag) {
#n = dllfunc("SetAccountProp", "fExcludeFromAllTransmit", 0);
} else {
#n = dllfunc("SetAccountProp", "fExcludeFromAllTransmit", 1);
}
#n = dllfunc("SaveAccountProp");
#i = #i + 1;
}
|
|