This file contains hidden or 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 hidden or 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 hTree = FindChildByClass(FV.hwnd, WC_TREEVIEW); | |
| if (hTree) { | |
| api.SetFocus(hTree); | |
| } | |
| return S_OK; |
This file contains hidden or 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 nIndex = FV.GetFocusedItem; | |
| FV.SelectItem(nIndex, SVSI_SELECT); | |
| if (++nIndex < FV.ItemCount(SVGIO_ALLVIEW)) { | |
| FV.SelectItem(nIndex, (Ctrl.hwndList && api.SendMessage(Ctrl.hwndList, LVM_GETITEMSTATE, nIndex, LVIS_SELECTED) ? SVSI_SELECT : SVSI_DESELECT) | SVSI_ENSUREVISIBLE | SVSI_FOCUSED); | |
| } |
This file contains hidden or 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).Name); |
This file contains hidden or 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 iItem = FV.HitTest(pt, LVHT_ONITEM); | |
| if (iItem >= 0) { | |
| FV.SelectItem(iItem, SVSI_SELECT | SVSI_FOCUSED | SVSI_DESELECTOTHERS); | |
| } | |
| return S_FALSE; |
This file contains hidden or 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
| if (te.Data.LayoutPath) { | |
| SaveXml(te.Data.LayoutPath); | |
| } else { | |
| SaveLayout(); | |
| } | |
| return S_OK; |
This file contains hidden or 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 commdlg = api.CreateObject("CommonDialog"); | |
| commdlg.InitDir = BuildPath(te.Data.DataFolder, "layout"); | |
| commdlg.Filter = MakeCommDlgFilter("*.xml"); | |
| commdlg.Flags = OFN_FILEMUSTEXIST; | |
| if (commdlg.ShowOpen()) { | |
| te.Data.LayoutPath = commdlg.FileName; | |
| LoadXml(commdlg.FileName); | |
| } | |
| return S_OK; |
This file contains hidden or 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
| window.addEventListener("keydown", function (ev) { | |
| if (ev.keyCode == VK_TAB) { | |
| const res = /inneraddressbar_(\d+)/i.exec((ev.target || ev.srcElement).id); | |
| if (res) { | |
| setTimeout(async function () { | |
| const FV = te.Ctrl(CTRL_TC, res[1]).Selected; | |
| FV.Focus(); | |
| FV.TreeView.Focus(); | |
| }, 99); | |
| if (ev.preventDefault) { |
This file contains hidden or 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 Selected = FV.Items(SVGIO_SELECTION | SVGIO_FLAG_VIEWORDER); | |
| const Progress = api.CreateObject("ProgressDialog"); | |
| Progress.StartProgressDialog(te.hwnd, null, 2); | |
| const Name = GetText("Selected items"); | |
| try { | |
| FV.SelectItem(null, SVSI_DESELECTOTHERS); | |
| const IconSize = FV.IconSize; | |
| const ViewMode = api.SendMessage(FV.hwndList, LVM_GETVIEW, 0, 0); | |
| if (ViewMode == 1 || ViewMode == 3) { |