IT
以博客园为例子:
            //登录网站(登录过程中不要有任何其他键盘、鼠标操作)
            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}");
posted on 2011-03-15 10:29  liufei  阅读(203)  评论(0编辑  收藏  举报