Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
        /// <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);
        }
Ejemplo n.º 3
0
 public static void LoginPassword(string strValue)
 {
     Thread.Sleep(300);
     System.IntPtr hwnd = ActiveWindow("", "ATL:Edit", FKWndMgr.ENUM_CursorPosInWnd.eCursorPosInWnd_FirstPos);
     FKWinIO.Input(strValue);
 }