ABA


"לקחת את הPATH של תקיה שבפוקוס"
גירסת הדפסה        
קבוצות דיון פיתוח, תיכנות ובניית אתרים נושא #15988 מנהל    סגן המנהל    מפקח   Winner    צל"ש   מומחה  
אשכול מספר 15988
ronen333 
חבר מתאריך 20.2.03
6069 הודעות
   18:19   19.07.10   
אל הפורום  
  לקחת את הPATH של תקיה שבפוקוס  
 
   אני מעוניין להשיג את הכתובת של תקיה פתוחה שעכשיו בפוקוס (כלומר שערך ה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).

תודה מראש לעוזרים


                                שתף        
מכתב זה והנלווה אליו, על אחריות ועל דעת הכותב בלבד

  האשכול     מחבר     תאריך כתיבה     מספר  
  לא חשוב.. הצלחתי X= ronen333  19.07.10 20:03 1

       
ronen333 
חבר מתאריך 20.2.03
6069 הודעות
   20:03   19.07.10   
אל הפורום  
  1. לא חשוב.. הצלחתי X=  
בתגובה להודעה מספר 0
 
   טיפש שכמותי :P

ככה צריך:


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)
{

StringBuilder formDetails = new StringBuilder(512);
string editText;
GetWindowText(hWnd.ToInt32(), formDetails, 512);
editText = formDetails.ToString();
}
}
}
}
}
}


                                                         (ניהול: מחק תגובה)
מכתב זה והנלווה אליו, על אחריות ועל דעת הכותב בלבד

תגובה מהירה  למכתב מספר: 
 
___________________________________________________________________

___________________________________________________________________
למנהלים:  נעל | תייק בארכיון | מחק | העבר לפורום אחר | מחק תגובות | עגן אשכול
       



© כל הזכויות שמורות ל-רוטר.נט בע"מ rotter.net