Example #1
0
        /// <summary>
        /// Powershell logic.
        /// </summary>
        protected override void ProcessRecord()
        {
            var ss = new ScreenScraper();

            if (Text != null)
            {
                ss.TypeKeys(Text);
                return;
            }

            if (SecureText != null)
            {
                ss.TypeKeys(SecureStringToString(SecureText));
            }

            if (Credential != null)
            {
                ss.TypeKeys(Credential.UserName);
                ss.TypeKeys("{tab}");
                ss.TypeKeys(Credential.GetNetworkCredential().Password);
            }
        }