local hwnd = win.handle("c=TTOTAL_CMD") local Panel = ifelse(tc.active(hwnd) == "left", 2, 3) local TMP = childwin.handle(hwnd,"TMyPanel", Panel) local TMTC = childwin.handle(TMP,"TMyTabControl") local Path = childwin.gettext(ifelse(TMTC, TMTC, TMP), "TMyPanel", 2) Path = file.folder(Path) for (length(Path) > 1) Panel = Path ++ "\_local.bar" if (validpath(Panel)) do do("D:\Utils\TotalCmd\DropDown\TCmenu.exe", Panel) quit else Path = file.folder(Path) endif endfor win.sendmessage(hwnd, 0x400+51, 540, 0)