Tablacus Explorer Blink用にしたら、いくつか使えなくなった。備忘録用のスクリプトまとめ。
デバッグ用
アドオンで「デバッグ」を追加する。
Addons.Debug.alert("ssss"); 「ssss」
Addons.Debug.alert(ABC);ABCの中身が表示
タブを閉じる
const FV = await GetFolderView(Ctrl);
FV.Close();
アクティブフォルダの項目数
const FV = await GetFolderView(Ctrl);
const Items = await FV.Items();
Addons.Debug.alert(await Items.Count);
タブの数をカウント
const TC = await te.Ctrl(CTRL_TC);
Addons.Debug.alert(await TC.Count);
タブを一つ右に移動
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var TC = te.Ctrl(CTRL_TC); | |
if (TC && TC.SelectedIndex < TC.Count – 1) { | |
TC.Move(TC.SelectedIndex, TC.SelectedIndex + 1); | |
return S_OK; | |
} | |
return S_FALSE; |
const TC = await te.Ctrl(CTRL_TC);
if (TC && await TC.SelectedIndex < await TC.Count - 1) {
TC.Move(await TC.SelectedIndex, await TC.SelectedIndex + 1);
return S_OK;
}
return S_FALSE;
コメント