/// <summary> /// 激活密码控件 /// </summary> /// <param name="strWndTitle"></param> /// <param name="strWndClass"></param> /// <param name="type"></param> /// <returns></returns> private static System.IntPtr ActiveWindow(string strWndTitle, string strWndClass, FKWndMgr.ENUM_CursorPosInWnd type) { FKWndMgr fw = new FKWndMgr(); System.IntPtr hWnd = fw.FindWindowHandler("Internet Explorer", strWndTitle, strWndClass, false, true); if (hWnd == null || hWnd == System.IntPtr.Zero) { return(System.IntPtr.Zero); } FKWndMgr.SetCursorPosInWnd(hWnd, type); return(hWnd); }
static private void SelectWnd(System.IntPtr hWnd) { FKWndMgr.SetCursorPosInWnd(hWnd, FKWndMgr.ENUM_CursorPosInWnd.eCursorPosInWnd_LastPos); }