Thanks for posting the Version 2 source!
I was wondering if there was a way to use the _ExplorerList menu to open new instances of the currently open folders or navigate to the currently open folder's location. Right now it will just activate that folder. I'd find this very helpful when downloading/opening/saving a bunch of files that you want to go to a certain directory that you currently have open, but not as favorite.
I've tried messing with the code myself but I'm not very proficient with AHK. All I could get it to do is activate the window.
Code:
f_CreateExplorerMenu()
{
Global
Local AllExplorerPaths := f_GetExplorerList()
Menu, ExplorerMenu, Add
Menu, ExplorerMenu, DeleteAll
Local ItemPos = 1
Local Name
Loop, Parse, AllExplorerPaths, `n
{
if A_LoopField =
continue
f_Split2(A_LoopField, "=", i_ExplorerMenuID%ItemPos%, Name)
;Menu, ExplorerMenu, Add, %Name%, f_ActivateWindow
Menu, ExplorerMenu, Add, %Name%, f_OpenExplorerMenuPath
f_SetMenuIcon("ExplorerMenu", Name, f_GetIcon("Explorer"))
ItemPos++
}
if ItemPos = 1
{
;Menu, ExplorerMenu, Add, %lang_Empty%, f_ActivateWindow
Menu, ExplorerMenu, Add, %lang_Empty%, f_OpenExplorerMenuPath
Menu, ExplorerMenu, Disable, %lang_Empty%
}
return
}
; Opens the path specified in the menu: ExplorerMenu
; which is the list of Explorer windows currently open
; Done by getting the name of the list item from the ExplorerMenu
; which happens to also be the path
f_OpenExplorerMenuPath:
f_OpenSelected("%A_ThisMenuItem%")
return
Any suggestions?