[DllImport("user32.dll",EntryPoint="FindWindow",CharSet=CharSet.UNICODE)]
Public static extern int MyFindWindow(string _WindowClassName, string _WindowName);
I am capturing the window handle of an external application (or any external app) using the GetForegroundWindow() api function. Once I have the handle I want to locate a field and send write text to that field. It seems that in VB6 there was a way to locate what the field of a window was after you grabbed the handle for that window. Does anyone know of a way to do this in C#?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.