|
本帖最后由 Hill27 于 2012-2-13 09:51 编辑
<div id="Layer2" style="position:absolute; width:632px; height:206px; z-index:2; left: 322px; top: 214px;">
<form method="post" name="setform" action="do.asp" onsubmit="return verify_form()">
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<blockquote>
<blockquote>
<p align="left"> <span class="style2">用户名:</span><font size="2">
<input type="text" name="t1" size="12" >
</font>
<font size="2">
<strong> </strong></font></p>
<p align="left"><span class="style2">密 码:</span><font size="2">
<input type="password" name="t2" size="12">
</font>
<input type="submit" value="进入系统" name="B1" style="background-color: #00FF00">
<input type="button" value="更改密码" name="B1" style="background-color: #00FF00" onClick="window.location.href='changmm.asp'"></p>
</p>
</blockquote>
</blockquote>
</form>
</div>
已解决
;做演示用了,缺少判断语句的
#include <IE.au3>
$oIE = _IECreate("http://*.0.178.*:8080/index.asp")
_IELoadWait($oIE)
$Input = _IEGetObjByName($oIE, "t1");用户名
$Input.value = "222222" ;为其赋值,
$Input1 = _IEGetObjByName($oIE, "t2");密码
$Input1.value = "999999" ;为其赋值,
$OK = _IEGetObjByID($oIE, "B1");通过工具查询到得登陆按钮ID值
$OK.click ;点击登陆按钮 |
|