[DllImport("user32.dll", EntryPoint = "FindWindow")] privates statisches externes IntPtr FindWindow (String IpClassName, String IpWindowName); [DllImport("User32.DLL")] öffentliche statische externe int SendMessage(IntPtr hWnd, uint Msg, int wParam, String lParam); [DllImport("User32.DLL")] öffentliches statisches externes IntPtr FindWindowEx(IntPtr hwndParent, IntPtr hwndChildAfter, String lpszClass, String lpszWindow); öffentliche Konstitution uint WM_SETTEXT = 0x000C;
private Const String USERID = "170809";
const int BM_CLICK = 0xF5;
IntPtr hwnd = FindWindow ("#32770", "Passwort überprüfen");
wenn (hwnd != IntPtr.Null) { während (hwnd == IntPtr.Null) ; IntPtr vHandle = FindWindowEx(hwnd, IntPtr.Zero, "Edit", null); SendMessage(vHandle, WM_SETTEXT, 0, USERID);
}
Die automatische Eingabe ist möglich, aber der OK-Button kann nicht angeklickt werden!! Gibt es einen großen Typen, der dir Ratschläge geben kann!! Vielen Dank
|