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