0

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 IntPtrs, 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...

jovanMeshkov
  • 757
  • 5
  • 12
  • 29
  • I really find these things tough ... maybe u can check these http://stackoverflow.com/questions/7740379/c-sharp-how-to-use-wm-gettext-getwindowtext-api or http://www.pinvoke.net/default.aspx/user32.getwindowtext – Rameez Ahmed Sayad Jul 29 '13 at 19:20
  • 1
    Use a UI automation library if you don't want to learn the winapi. Project White is pretty popular, so is the .NET System.Windows.Automation namespace. – Hans Passant Jul 29 '13 at 20:39

0 Answers0