Marco Polo

Marco Polo

  • NA
  • 8
  • 8.8k

Get text from handle window

Apr 2 2012 12:39 AM
Hi, im using C#.


I handle a window by this code line:


child = FindWindowEx(Parent, IntPtr.Zero, "DirectUIHWND");


This window is belong to "DirectUIHWND" class and it have textBox.


Im trying to get this text from textBox.


I've tryed the next function:


int winText = GetWindowText((int)child, strBldr, strBldr.Capacity);


But this function return the capture and not the text from the searchBox.


Any idea how can i get the text from the handle window?

Answers (5)