5
Answers

Get text from handle window

Marco Polo

Marco Polo

12y
4.9k
1
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)
Next Recommended Forum