使用OLE调用IE,所打开的网页中,有一登录表单,我希望程序能自动输入用户、密码以及登录。目前自动输入用户、密码都能解决
ole_1.object.Document.GetElementById.("username").InnerText='aaa'
ole_1.object.Document.GetElementById.("password").InnerText ='bbbbb'
遇到的困难是如何登录,不知道在如何控制程序提交表单即点击“登录”按钮,恳请各位伸一下援手。
下面是表单的源码
<form action="member.php?mod=logging&action=login&loginsubmit=yes&infloat=yes&lssubmit=yes" method="post" name="lsform" id="lsform" onsubmit="return lsSubmit();" autocomplete="off">
帐号<input type="text" name="username" id="ls_username" value="用户名/Email" />
密码<input type="password" name="password" id="ls_password" class="px vm" autocomplete="off" tabindex="902" />
<button type="submit" class="pn vm" tabindex="904" style="width: 75px;">登录</button>
</form>
------解决方案--------------------

------解决方案--------------------
来接个分啊,
