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
const FV = GetFolderView(Ctrl, pt); | |
FV.Refresh() | |
const item = Sync.FolderSettings.Get(FV); | |
if (item) { | |
const s = item.text || item.textContent; | |
if (s) { | |
Exec(FV, s, item.getAttribute("Type"), null); | |
} | |
} |
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
const currentPath = api.GetDisplayNameOf(FV, SHGDN_FORPARSING); | |
InputDialog("New Folder", "", function (r) { | |
if (r) { | |
let path = r.replace(/^\s+/, ""); | |
if (!/^[A-Z]:\\|^\\/i.test(path)) { | |
path = BuildPath(currentPath, path); | |
} | |
fso.CreateFolder(path); | |
} | |
}); |
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
const FV = GetFolderView(Ctrl, pt); | |
const pid1 = FV.FolderItem; | |
const Items = api.ILGetParent(pid1).GetFolder.Items(); | |
const ar = []; | |
for (let i = Items.Count; i-- > 0;) { | |
ar[i] = i; | |
} | |
ar.sort(function (a, b) { | |
return api.CompareIDs(0, Items.Item(a), Items.Item(b)); | |
}); |
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
FV.CurrentViewMode(4,16); | |
setTimeout(function() | |
{ | |
FV.Columns ='"System.ItemNameDisplay" -2 "System.DateModified" -2 "System.Size" -2 "System.ItemTypeText" -2'; | |
}, 99); |
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 toggle; | |
try { | |
toggle = !wsh.RegRead("HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\EnableShellExecuteHooks"); | |
} catch (e) { | |
toggle = true; | |
} | |
var ex = { EnableShellExecuteHooks: toggle, Explorer: true }; | |
OpenNewProcess("addons\\shellexecutehook\\worker.js", ex, false, WINVER >= 0x600 ? "RunAs" : null); |
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
wsh.CurrentDirectory = fso.BuildPath(te.Data.Installed, 'lib'); | |
if (window.chrome) { | |
fso.MoveFile('tewv64.dll', '_tewv64.dll'); | |
fso.MoveFile('tewv32.dll', '_tewv32.dll'); | |
} else { | |
fso.MoveFile('_tewv64.dll', 'tewv64.dll'); | |
fso.MoveFile('_tewv32.dll', 'tewv32.dll'); | |
} | |
FinalizeUI(); | |
te.Reload(1); |
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
ToggleFullscreen(); |
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
clipboardData.setData("text", (FV.FocusedItem || FV.FolderItem).Path); |
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
const hEdit = api.SendMessage(FV.hwndList, LVM_GETEDITCONTROL, 0, 0); | |
const fn = api.GetWindowText(hEdit); | |
let start = api.SendMessage(hEdit, 0xB0, 0, 0);//EM_GETSEL | |
const end = Math.floor(start >> 16); | |
start &= 0xffff; | |
if (fn.indexOf(".") >= 0) { | |
if (start) { | |
api.SendMessage(hEdit, 0xB1, 0, fn.length);//EM_SETSEL | |
} else { | |
if (end == fn.length) { |
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
const nFocused = FV.GetFocusedItem; | |
const bSelected = api.SendMessage(FV.hwndList, LVM_GETITEMSTATE, nFocused, LVIS_SELECTED); | |
FV.SelectItem(nFocused, bSelected ? SVSI_DESELECT : SVSI_SELECT); |