C#模拟键盘登录网站

以博客园为例子:
            //登录网站(登录过程中不要有任何其他键盘、鼠标操作)
            System.Diagnostics.Process.Start("http://www.cnblogs.com/mossan/admin/EditPosts.aspx");
            System.Threading.Thread.Sleep(1000);
            SendKeys.SendWait("mossan");//用户名
            SendKeys.SendWait("{TAB}");
            System.Threading.Thread.Sleep(500);
            SendKeys.SendWait("********");//密码
            SendKeys.SendWait("{ENTER}");
原文地址:https://www.cnblogs.com/liufei88866/p/1984541.html