public static bool EnterOCRErrorDialog() { Thread.Sleep(300); System.IntPtr hwnd = ActiveWindow("", "#32770", FKWndMgr.ENUM_CursorPosInWnd.eCursorPosInWnd_FirstPos); if (hwnd != null) { FKWinIO.KeyPress(13); return(true); } return(false); }
/// <summary> /// 输入密码 /// </summary> /// <param name="strValue"></param> /// <param name="needClean"></param> public static void LoginPassword(string strValue, bool needClean = false) { Thread.Sleep(300); System.IntPtr hwnd = ActiveWindow("", "Edit", FKWndMgr.ENUM_CursorPosInWnd.eCursorPosInWnd_FirstPos); if (needClean) { int maxPassLen = 33; for (int i = 0; i < maxPassLen; i++) { // 删除 FKWinIO.KeyPress(46); } } FKWinIO.Input(strValue); }