我有一个登录软件,我想通过我的程序自动登录,不用手敲用户名和密码,要怎么才能实现?

解决方案 »

  1.   

    是在winform中捕获,不是在WEB页面
      

  2.   

    foreach不行还是要递归和web的原理是一样的
    private void Control1(Control ctl)
            {
                foreach (Control childCtrl in ctl.Controls)
                {
                    Control1(childCtrl);                switch (childCtrl.GetType().ToString())
                    {
                        case "System.Windows.Forms.TextBox":
                            TextBox txt = (TextBox)childCtrl;
                            txt.Text = "";
                            break;
                    }
                }
            }
      

  3.   

    怎么传参数给Control1(Control ctl)?
      

  4.   

    QQ是非托管程序
    以我个人有限的经验
    好像只能用C++调用钩子挂上去才行
    相应的例子比如Spy++
      

  5.   

    Form frm=new Form();
    Control1(frm);