IsInternetExplorer7Window() public static méthode

public static IsInternetExplorer7Window ( string strWindowTitle ) : bool
strWindowTitle string
Résultat bool
Exemple #1
0
        private static bool PerformInternal(AutoTypeCtx ctx, string strWindow)
        {
            if (ctx == null)
            {
                Debug.Assert(false); return(false);
            }

            AutoTypeCtx ctxNew = ctx.Clone();

            if (Program.Config.Integration.AutoTypePrependInitSequenceForIE &&
                WinUtil.IsInternetExplorer7Window(strWindow))
            {
                ctxNew.Sequence = @"{DELAY 50}1{DELAY 50}{BACKSPACE}" +
                                  ctxNew.Sequence;
            }

            return(AutoType.Execute(ctxNew));
        }
Exemple #2
0
        private static bool PerformInternal(PwEntry pwe, string strWindow)
        {
            Debug.Assert(pwe != null); if (pwe == null)
            {
                return(false);
            }

            string strSeq = GetSequenceForWindow(pwe, strWindow, false);

            if ((strSeq == null) || (strSeq.Length == 0))
            {
                return(false);
            }

            if (Program.Config.Integration.AutoTypePrependInitSequenceForIE &&
                WinUtil.IsInternetExplorer7Window(strWindow))
            {
                strSeq = @"{DELAY 50}1{DELAY 50}{BACKSPACE}" + strSeq;
            }

            AutoType.Execute(strSeq, pwe);
            return(true);
        }