Clone() public method

public Clone ( ) : AutoTypeCtx
return AutoTypeCtx
Esempio n. 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));
        }
Esempio n. 2
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);
		}