Ejemplo n.º 1
0
        public SUIWindow GetClientWindow()
        {
            IEWin.BringToTopMost();
            SUIWindow client = null;

            if (SUIIE.Version == 6)
            {
                client = IEWin.FindChildWindow("Shell DocObject View", string.Empty);
            }
            else
            {
                SUIWindow temp = IEWin.FindChildWindow("TabWindowClass", IEWin.WindowText);
                client = temp.FindChildWindow("Shell DocObject View", string.Empty);
            }
            return(client);
        }
Ejemplo n.º 2
0
        public SUIBitmap GetClientArea()
        {
            IEWin.BringToTopMost();
            SUIWindow client = null;

            if (SUIIE.Version == 6)
            {
                client = IEWin.FindChildWindow("Shell DocObject View", string.Empty);
            }
            else
            {
                SUIWindow temp = IEWin.FindChildWindow("TabWindowClass", IEWin.WindowText);
                client = temp.FindChildWindow("Shell DocObject View", string.Empty);
            }
            if (client != null)
            {
                SUIBitmap clientImage = SUIImage.GetImageFromWindow(client);
                return(clientImage);
            }
            return(null);
        }