I recently tried those 2 functions:
[DllImport("user32.dll")]
public static extern IntPtr FindWindow(string lpClassName,string lpWindowName);
[DllImport("user32.dll")]
public static extern IntPtr FindWindowEx(int hwndParent,int hwndChildAfter,String lpszClass, String lpszWindow);
..so far I received only IntPtr
s, I know(at least I think) that this returned int
is the process ID of the Window, now I want to get window's control text and click on button, how to do that?
I can't find anything around...