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 ex = { EnableShellExecuteHooks: true, 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
var ex = { EnableShellExecuteHooks: false, Explorer: false }; | |
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
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
let FV = GetFolderView(Ctrl, pt); | |
const Selected = FV.SelectedItems(); | |
if (Selected.Count) { | |
FV = Sync.SwitchPane.NextFV(FV); | |
for (let i = 0; i < Selected.Count; i++) { | |
NavigateFV(FV, Selected.Item(i), SBSP_NEWBROWSER); | |
} | |
} |
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 FV = GetFolderView(Ctrl, pt); | |
var Selected = FV.SelectedItems(); | |
FV.Refresh(); | |
if (Selected && Selected.Count) { | |
for (var i = Selected.Count; i--;) { | |
FV.SelectItem(Selected.Item(i), SVSI_SELECT); | |
} | |
FV.SelectItem(Selected.Item(0), SVSI_SELECT | SVSI_FOCUSED); | |
} |
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.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
var Items = api.OleGetClipboard(); | |
if (Items.Count) { | |
for (var i = 0; i < Items.Count; i++) { | |
Navigate(Items.Item(i), SBSP_NEWBROWSER); | |
} | |
return; | |
} | |
Items = String(clipboardData.getData("text")).split(/[\r\n]+/); | |
for (var i in Items) { | |
if (/^"?[A-Z]:\\|^"?\\\\[A-Z]|^"?::{/i.test(Items[i])) { |
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 FV = GetFolderView(Ctrl, pt); | |
if (FV) { | |
var TV = FV.TreeView; | |
if (TV) { | |
var hwnd = TV.hwndTree; | |
for (var hItem = api.SendMessage(hwnd, TVM_GETNEXTITEM, 0, null); hItem; hItem = api.SendMessage(hwnd, TVM_GETNEXTITEM, 1, hItem)) { | |
api.SendMessage(hwnd, TVM_EXPAND, 0x8001, hItem); | |
} | |
TV.Expand(FV.FolderItem, 0); | |
} |
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 FV = GetFolderView(Ctrl, pt); | |
if (FV) { | |
var hMenu = api.CreatePopupMenu(), hSubMenu; | |
var ContextMenu = FV.ViewMenu(); | |
if (ContextMenu) { | |
ContextMenu.QueryContextMenu(hMenu, 0, 1, 0x7fff, CMF_DEFAULTONLY); | |
var mii = api.Memory("MENUITEMINFO"); | |
mii.cbSize = mii.Size; | |
mii.fMask = MIIM_SUBMENU; | |
for (var i = 0; i < api.GetMenuItemCount(hMenu); i++) { |
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 FV = GetFolderView(Ctrl, pt); | |
if (FV) { | |
var hMenu = api.CreatePopupMenu(), hSubMenu; | |
var ContextMenu = FV.ViewMenu(); | |
if (ContextMenu) { | |
ContextMenu.QueryContextMenu(hMenu, 0, 1, 0x7fff, CMF_DEFAULTONLY); | |
var mii = api.Memory("MENUITEMINFO"); | |
mii.cbSize = mii.Size; | |
mii.fMask = MIIM_SUBMENU; | |
for (var i = 0; i < api.GetMenuItemCount(hMenu); i++) { |
OlderNewer