אני מעוניין להשיג את הכתובת של תקיה פתוחה שעכשיו בפוקוס (כלומר שערך הZ שלה בחלונות הוא הגבוה ביותר). לא יודע למה לא הצלחתי..
ניסתי לעשות את זה ככה: (לאחר שבדקתי בSPY++ שהחלק של הPATH הוא ToolbarWindow32. IntPtr root = GetForegroundWindow(); hWnd = FindWindowEx(root, IntPtr.Zero, "WorkerW", null); if (hWnd != IntPtr.Zero) { hWnd = FindWindowEx(hWnd, IntPtr.Zero, "ReBarWindow32", null); if (hWnd != IntPtr.Zero) { hWnd = FindWindowEx(hWnd, IntPtr.Zero, "Address Band Root", null); if (hWnd != IntPtr.Zero) { hWnd = FindWindowEx(hWnd, IntPtr.Zero, "msctls_progress32", null); if (hWnd != IntPtr.Zero) { hWnd = FindWindowEx(hWnd, IntPtr.Zero, "Breadcrumb Parent", null); if (hWnd != IntPtr.Zero) { hWnd = FindWindowEx(hWnd, IntPtr.Zero, "ToolbarWindow32", null); if (hWnd != IntPtr.Zero) { //searching for the path box, to fill the list of files EnumChildWindows(hWnd, new Callback(FillOptionsByFolderPath), IntPtr.Zero); } } } } }
|
אבל זה לא מתחיל לעשות את הEnumChildWindows בכלל..
(ששם אני מחפש את הטקסט של הPATH).
תודה מראש לעוזרים

