Last active
April 23, 2022 09:43
-
-
Save tablacus/dbda77cfe450d071b1dcf652ff0ea62e to your computer and use it in GitHub Desktop.
Open next folder - Tablacus Explorer
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)); | |
}); | |
let j = 0; | |
for (let i = ar.length; i-- > 0;) { | |
const pid2 = Items.Item(ar[i]); | |
if (IsFolderEx(pid2)) { | |
if (api.ILIsEqual(pid1, pid2)) { | |
if (j) { | |
Navigate(Items.Item(ar[j]), SBSP_SAMEBROWSER); | |
} | |
break; | |
} | |
j = i; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment