Skip to content

Instantly share code, notes, and snippets.

Avatar

Gaku tablacus

View GitHub Profile
@tablacus
tablacus / locked.css
Created Jul 16, 2020
Locked tab style sheet
View locked.css
.locked {
background-color: #ffff00;
}
@tablacus
tablacus / datecolumntoascending.js
Created Jul 12, 2020
Click the date modified column to sort in ascending order
View datecolumntoascending.js
AddEvent("ColumnClick", function (Ctrl, iItem) {
var cColumns = api.CommandLineToArgv(Ctrl.Columns(1));
var s = cColumns[iItem * 2];
if (s == "System.DateModified" && Ctrl.SortColumn(1) !== "System.DateModified" && api.GetKeyState(VK_SHIFT) >= 0) {
Ctrl.SortColumn = "System.DateModified";
return S_OK;
}
});
@tablacus
tablacus / up.js
Created May 23, 2020
Go up - Tablacus Explorer
View up.js
FV = GetFolderView(Ctrl, pt);
FV.Navigate(null, SBSP_PARENT);
@tablacus
tablacus / focustreeview.js
Created Dec 24, 2019
Focus tree view - Tablacus Explorer
View focustreeview.js
FV.TreeView.Focus();
return S_OK;
@tablacus
tablacus / dropfiles.js
Created Dec 17, 2019
WM_DROPFILES - Tablacus Explorer
View dropfiles.js
var Selected = FV.SelectedItems();
if (Selected.Count == 0) {
return;
}
var oExec = wsh.Exec("C:\\bin\\tanzip\\TanZIP.exe");
var hwnd = GethwndFromPid(oExec.ProcessID);
api.PostMessage(hwnd, WM_DROPFILES, Selected .hDrop, 0);
@tablacus
tablacus / switch_list_details.js
Created Dec 13, 2018
Switch List and Details - Tablacus Explorer
View switch_list_details.js
FV.CurrentViewMode = FV.CurrentViewMode == FVM_LIST ? FVM_DETAILS : FVM_LIST;
View lineheight.js
var FV = GetFolderView(Ctrl, pt);
FV.IconSize = 19;
@tablacus
tablacus / movetabright.js
Created Aug 29, 2018
Move Tab to right - Tablacus Explorer
View movetabright.js
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;
@tablacus
tablacus / movetableft.js
Created Aug 29, 2018
Move Tab to left - Tablacus Explorer
View movetableft.js
var TC = te.Ctrl(CTRL_TC);
if (TC && TC.SelectedIndex > 0) {
TC.Move(TC.SelectedIndex, TC.SelectedIndex - 1);
return S_OK;
}
return S_FALSE;
@tablacus
tablacus / selectflac.js
Created Aug 13, 2018
Select flac files. - Tablacus Explorer
View selectflac.js
var FV = GetFolderView(Ctrl, pt), Item, Items = FV.Items();
for (var i = 0; Item = Items.Item(i); i++) {
FV.SelectItem(Item, api.PathMatchSpec(Item.Path , "*.flac") ? SVSI_SELECT : SVSI_DESELECT);
}
You can’t perform that action at this time.