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)); }
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); }