Get the handle of a Textbox from another application

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Iker14
    New Member
    • Jul 2010
    • 1

    Get the handle of a Textbox from another application

    Hi Everyone

    I´ve been trying to use the function FindWindowEx and FindWindow to find a textbox from another aplication, but I have a problem, with the spy ++ i have this:

    handle-"Main Window"-ThunderRT6FormD C
    handle-""-ThunderRT6Frame
    handle-""-ThunderRT6Frame
    handle-""-ThunderRT6TextB ox
    handle-""-ThunderRT6TextB ox
    handle-""-ThunderRT6TextB ox

    I found the hanlde of the main window, then i search for the second ThunderRT6Frame with FindWindowEx,
    but i only get the handle of the first one.

    Here is my code:

    IntPtr Main_handle = FindWindow("Thu nderRT6FormDC", "Main Window");

    if(Main_handle != IntPtr.Zero){
    IntPtr Frame2_handle = FindWindowEx(Ma in_handle, IntPtr.Zero, "ThunderRT6Fram e", IntPtr.Zero);

    is there a way to pass to the second ThunderRT6Frame , and then get the handle of the third ThunderRT6TextB ox?


    Thank you
    Iker14
Working...