I know a window of "ahk_class CabinetWClass" can be navigated to a spesific folder path by creating a ComObject.
But I couldn't make a window of ''ahk_class #32770" to be navigated to a spesific folder path by creating a ComObject.
Does anyone know how to do it?
Code: Select all
path_folder_target := 'C:\'
explorerHwnd := WinActive("ahk_class CabinetWClass") or WinActive("ahk_class #32770")
if (explorerHwnd)
{
for window in ComObject("Shell.Application").Windows
{
if (window.hwnd == explorerHwnd)
{
window.navigate(path_folder_target)
}
}
}