タブファイラー・X-Finder [ x ] Part28at SOFTWARE
タブファイラー・X-Finder [ x ] Part28 - 暇つぶし2ch561:名無しさん@お腹いっぱい。
12/03/07 18:52:35.02 DcGWzXeI0
>>554 と似たような発想だが
コピー移動先のMRU取得

//AddHistory(モード,iniファイル名,履歴数上限,固定項目数)

function AddHistory(mode,tfname,limit,fixitem)
{
data = WScript.Env('InputData');
if (data){
cTF = WScript.ToolFolder('Extra:' + tfname ,true);
for (var i = 0; i < cTF.Count; i++) {
if (cTF.Item(i).Name.toLowerCase() == data.toLowerCase()) {
cTF.Delete(i); break;
}
}
Item = cTF.Add;
for ( i=cTF.Count-1; i > fixitem; i--) {
cTF.Item(i).Name (cTF.Item(i-1).Name);
cTF.Item(i).Path (cTF.Item(i-1).Path);
cTF.Item(i).Icon (cTF.Item(i-1).Icon);
cTF.Item(i).Type (cTF.Item(i-1).Type);
}
cTF.Item(fixitem).Name (data);
cTF.Item(fixitem).Path (data);
cTF.Item(fixitem).Icon ('-');
cTF.Item(fixitem).Type (mode);
if (cTF.Count > limit + fixitem) {
cTF.Delete(cTF.Count-1);
}
}
}



次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch