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