找回密码
 加入
搜索
查看: 2496|回复: 3

[IE类操作] 这个ASP 怎么实现自动登入

[复制链接]
发表于 2012-10-12 10:32:06 | 显示全部楼层 |阅读模式
#include<ie.au3>
$user = InputBox("提示", "请输入论坛账号", "", "",50,50,780,500,9)
$pass = InputBox("提示", "请输入论坛密码", "", "",50,50,780,500,9)
$oIE = _IECreate ("http://192.168.1.2:1024/index.asp",0,1,0)                     
Sleep(2000)

  $oForm = _IEFormGetObjByName ($oIE, "Login")   
  $oQuery = _IEFormElementGetObjByName ($oForm, "UserName")   
_IEFormElementSetValue ($oQuery, $user)
    $oQuery = _IEFormElementGetObjByName ($oForm, "UserPassword")   
_IEFormElementSetValue ($oQuery, $pass)

这样实现不了  为什么呢?  


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML lang=gb2312
xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>明发戴斯酒店报修系统-网上报修系统</TITLE>
<meta name="description" content="明发戴斯酒店报修系统">
<meta name="keyword" content="报修">
<META http-equiv=content-type content=text/html;charset=gb2312>
<LINK href="favicon.ico" type=image/x-icon rel=icon><LINK href="favicon.ico" type=image/x-icon rel="shortcut icon">
<META content="MSHTML 6.00.2900.5803" name=GENERATOR>
<LINK href="images/style.css" type=text/css rel=stylesheet>
<SCRIPT src="js/jquery.js" type=text/javascript></SCRIPT>
<SCRIPT src="js/BWS.js" type=text/javascript></SCRIPT>
<SCRIPT language=javaScript src="js/BWSsoft.js" type=text/javascript></SCRIPT>
<SCRIPT type=text/javascript>iwms.urlPrefix="";iwms.guestAdd=false;</SCRIPT>

</HEAD>

<BODY>
<center>
<DIV class=twidth>
  <div id=sitehead>
    <div class=l></div>
    <div class=r></div>
    <div class=m>
      <table width="100%">
        <tbody>
        <tr>
        
          </tr>
        </tbody>
      </table>
    </div>
  </div>
  <DIV id=navbar>
<DIV class=l></DIV>
<DIV class=r></DIV>
<DIV class=m><A class=first href=index.asp>首页</A>&nbsp;&nbsp;<A class=first href=index.asp?T=baoxiu>物品报修</A>&nbsp;&nbsp;<A class=first href=index.asp?T=my>我的工单</A>&nbsp;&nbsp;<A class=first href=index.asp?T=chaxun>编号查询</A>&nbsp;&nbsp;<A class=first href=index.asp?T=ziliao>资料修改</A>&nbsp;&nbsp;</DIV></DIV>

<DIV id=navsub>
<DIV class=l></DIV>
<DIV class=r></DIV>
<DIV class=m>
<DIV style="FLOAT: left; WIDTH: 40%">&nbsp; <a href="index.asp">首页</a> &gt;&gt; 网上报修系统</DIV>
</DIV></DIV>
<TABLE id=middle cellSpacing=0 cellPadding=0 width="100%">
  <TBODY>
  <TR vAlign=top align=left>
  <TD width=250>
      <DIV class=lframe>
      <DIV class=tl></DIV>
      <DIV class=tr></DIV>
      <DIV class=tm><SPAN class=tt>用户登录</SPAN> </DIV>
      <DIV class=wrapper>
      <DIV class=ml></DIV>
      <DIV class=mr></DIV>
      <DIV class=mm><form name=Login action=Login.asp method=post onSubmit='return CheckForm();'>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 帐 号:&nbsp; <input name=UserName type=text value='' size=12 maxlength=20><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 密 码:&nbsp; <INPUT name=UserPassword type=password id=UserPassword size=12 maxlength=20><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; COOKIE:&nbsp; <select name=CookieDate><option selected value=0>不保存</option><option value=1>保存一天</option><option value=2>保存一月</option><option value=3>保存一年</option></select><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<input type=submit name=Submit value='登 陆'>&nbsp;&nbsp;<input type=button name=Submit2 value='注 册' onClick=location.href='index.asp?T=reg'>&nbsp; &nbsp;<a href=index.asp?T=csmm>忘记密码</a></FORM></DIV></DIV>
      <DIV class=bl></DIV>
      <DIV class=br></DIV>
      <DIV class=bm></DIV></DIV>
          <DIV class=lframe>
      <DIV class=tl></DIV>
      <DIV class=tr></DIV>
      <DIV class=tm><SPAN class=tt>网站通知</SPAN> </DIV>
      <DIV class=wrapper>
      <DIV class=ml></DIV>
      <DIV class=mr></DIV>
      <DIV class=mm><div align=center><table border=0 cellpadding=0 cellspacing=0 width=208 height=150><tr><td><p style='line-height: 150%; margin-left: 8px; margin-right: 6px'><MARQUEE direction='Up' id=scrollarea onmouseover=this.stop(); onmouseout=this.start(); scrollAmount=1 scrollDelay=10  height=150>还没有任何滚动公告...</MARQUEE></td></tr></table></div></DIV></DIV>
      <DIV class=bl></DIV>
      <DIV class=br></DIV>
      <DIV class=bm></DIV></DIV>
          <DIV class=lframe>
      <DIV class=tl></DIV>
      <DIV class=tr></DIV>
      <DIV class=tm><SPAN class=tt>数据统计</SPAN> </DIV>
      <DIV class=wrapper>
      <DIV class=ml></DIV>
      <DIV class=mr></DIV>
      <DIV class=mm>&nbsp; &nbsp; &nbsp; 用户总数:3人<br>&nbsp; &nbsp; &nbsp; 维修员数:1名<br>&nbsp; &nbsp; &nbsp; 工单总数:27条<br>&nbsp; &nbsp; &nbsp; 今日工单:0条<br></DIV></DIV>
      <DIV class=bl></DIV>
      <DIV class=br></DIV>
      <DIV class=bm></DIV></DIV>
</TD>
    <TD>
<DIV class="mframe mR">
      <DIV class=tl></DIV>
      <DIV class=tr></DIV>
      <DIV class=tm>
      <SPAN class=tt>报修列表</SPAN> </DIV>
      <DIV class=wrapper>
      <DIV class=ml></DIV>
      <DIV class=mr></DIV>
      <DIV class=mm><div align=center><table width=98% border=1 cellspacing=0 bordercolor=#C4E6FF></tr><TR><td width=18% bordercolor=#C4E6FF bgcolor=#C4E6FF><div align=center><strong>工单号</strong></div></td><td width=18% bordercolor=#C4E6FF bgcolor=#C4E6FF><div align=center><strong>报修物品</strong></div></td><td width=18% bordercolor=#C4E6FF bgcolor=#C4E6FF><div align=center><strong>报修单位</strong></div></td><td width=9% bordercolor=#C4E6FF bgcolor=#C4E6FF><div align=center><strong>报修人员</strong></div></td><td width=22% bordercolor=#C4E6FF bgcolor=#C4E6FF><div align=center><strong>报修时间</strong></div></td><td width=10% bordercolor=#C4E6FF bgcolor=#C4E6FF><div align=center><strong>维修状态</strong></div></td></TR><tr><td><div align=center><a href=index.asp?T=gdshow&gdid=BX20121011115623 title=点击查看该工单号的详情>BX20121011115623</a></div></td><td><div align=center>123</div></td><td><div align=center>******</div></td><td><div align=center>张**</div></td><td><div align=center>2012-10-11 11:56:23</div></td><td><div align=center><font color=#669900>已维修</font></div></td></tr><tr><td><div align=center><a href=index.asp?T=gdshow&gdid=BX20121011101019 title=点击查看该工单号的详情>BX20121011101019</a></div></td><td><div align=center>点灯</div></td><td><div align=center>******</div></td><td><div align=center>张**</div></td><td><div align=center>2012-10-11 10:10:19</div></td><td><div align=center><font color=blue>维修中</font></div></td></tr><tr><td><div align=center><a href=index.asp?T=gdshow&gdid=BX20121010165637 title=点击查看该工单号的详情>BX20121010165637</a></div></td><td><div align=center>3333333333</div></td><td><div align=center>******</div></td><td><div align=center>张**</div></td><td><div align=center>2012-10-10 16:56:37</div></td><td><div align=center><font color=red>未维修</font></div></td></tr><tr><td><div align=center><a href=index.asp?T=gdshow&gdid=BX20121010164518 title=点击查看该工单号的详情>BX20121010164518</a></div></td><td><div align=center>44444444444444444444</div></td><td><div align=center>******</div></td><td><div align=center>张**</div></td><td><div align=center>2012-10-10 16:45:18</div></td><td><div align=center><font color=red>未维修</font></div></td></tr><tr><td><div align=center><a href=index.asp?T=gdshow&gdid=BX20121010162531 title=点击查看该工单号的详情>BX20121010162531</a></div></td><td><div align=center>3333333333333333333</div></td><td><div align=center>******</div></td><td><div align=center>张**</div></td><td><div align=center>2012-10-10 16:25:31</div></td><td><div align=center><font color=red>未维修</font></div></td></tr><tr><td><div align=center><a href=index.asp?T=gdshow&gdid=BX20121010162439 title=点击查看该工单号的详情>BX20121010162439</a></div></td><td><div align=center>111111111111111111</div></td><td><div align=center>******</div></td><td><div align=center>张**</div></td><td><div align=center>2012-10-10 16:24:39</div></td><td><div align=center><font color=red>未维修</font></div></td></tr><tr><td><div align=center><a href=index.asp?T=gdshow&gdid=BX20121010162146 title=点击查看该工单号的详情>BX20121010162146</a></div></td><td><div align=center>888888888888</div></td><td><div align=center>******</div></td><td><div align=center>张**</div></td><td><div align=center>2012-10-10 16:21:46</div></td><td><div align=center><font color=red>未维修</font></div></td></tr><tr><td><div align=center><a href=index.asp?T=gdshow&gdid=BX20121010162056 title=点击查看该工单号的详情>BX20121010162056</a></div></td><td><div align=center>432423</div></td><td><div align=center>******</div></td><td><div align=center>张**</div></td><td><div align=center>2012-10-10 16:20:56</div></td><td><div align=center><font color=red>未维修</font></div></td></tr><tr><td><div align=center><a href=index.asp?T=gdshow&gdid=BX20121010162047 title=点击查看该工单号的详情>BX20121010162047</a></div></td><td><div align=center>432423</div></td><td><div align=center>******</div></td><td><div align=center>张**</div></td><td><div align=center>2012-10-10 16:20:47</div></td><td><div align=center><font color=red>未维修</font></div></td></tr><tr><td><div align=center><a href=index.asp?T=gdshow&gdid=BX20121010162037 title=点击查看该工单号的详情>BX20121010162037</a></div></td><td><div align=center>4324</div></td><td><div align=center>******</div></td><td><div align=center>张**</div></td><td><div align=center>2012-10-10 16:20:37</div></td><td><div align=center><font color=red>未维修</font></div></td></tr><tr><td><div align=center><a href=index.asp?T=gdshow&gdid=BX20121010162029 title=点击查看该工单号的详情>BX20121010162029</a></div></td><td><div align=center>432</div></td><td><div align=center>******</div></td><td><div align=center>张**</div></td><td><div align=center>2012-10-10 16:20:29</div></td><td><div align=center><font color=red>未维修</font></div></td></tr><tr><td><div align=center><a href=index.asp?T=gdshow&gdid=BX20121010162016 title=点击查看该工单号的详情>BX20121010162016</a></div></td><td><div align=center>432523</div></td><td><div align=center>******</div></td><td><div align=center>张**</div></td><td><div align=center>2012-10-10 16:20:16</div></td><td><div align=center><font color=red>未维修</font></div></td></tr><tr><td><div align=center><a href=index.asp?T=gdshow&gdid=BX20121010162006 title=点击查看该工单号的详情>BX20121010162006</a></div></td><td><div align=center>523423423</div></td><td><div align=center>******</div></td><td><div align=center>张**</div></td><td><div align=center>2012-10-10 16:20:06</div></td><td><div align=center><font color=red>未维修</font></div></td></tr><tr><td><div align=center><a href=index.asp?T=gdshow&gdid=BX20121010161950 title=点击查看该工单号的详情>BX20121010161950</a></div></td><td><div align=center>43225</div></td><td><div align=center>******</div></td><td><div align=center>张**</div></td><td><div align=center>2012-10-10 16:19:50</div></td><td><div align=center><font color=red>未维修</font></div></td></tr><tr><td><div align=center><a href=index.asp?T=gdshow&gdid=BX20121010161932 title=点击查看该工单号的详情>BX20121010161932</a></div></td><td><div align=center>4234234234234324234</div></td><td><div align=center>******</div></td><td><div align=center>张**</div></td><td><div align=center>2012-10-10 16:19:32</div></td><td><div align=center><font color=red>未维修</font></div></td></tr><tr><td><div align=center><a href=index.asp?T=gdshow&gdid=BX20121010130227 title=点击查看该工单号的详情>BX20121010130227</a></div></td><td><div align=center>sad</div></td><td><div align=center>******</div></td><td><div align=center>张**</div></td><td><div align=center>2012-10-10 13:02:27</div></td><td><div align=center><font color=#669900>已维修</font></div></td></tr><tr><td><div align=center><a href=index.asp?T=gdshow&gdid=BX20121010130048 title=点击查看该工单号的详情>BX20121010130048</a></div></td><td><div align=center>asd</div></td><td><div align=center>******</div></td><td><div align=center>张**</div></td><td><div align=center>2012-10-10 13:00:48</div></td><td><div align=center><font color=#669900>已维修</font></div></td></tr><tr><td><div align=center><a href=index.asp?T=gdshow&gdid=BX20121010114204 title=点击查看该工单号的详情>BX20121010114204</a></div></td><td><div align=center>888888</div></td><td><div align=center>******</div></td><td><div align=center>u**</div></td><td><div align=center>2012-10-10 11:42:04</div></td><td><div align=center><font color=blue>维修中</font></div></td></tr><tr><td><div align=center><a href=index.asp?T=gdshow&gdid=BX20121010112509 title=点击查看该工单号的详情>BX20121010112509</a></div></td><td><div align=center>fdsafds</div></td><td><div align=center>******</div></td><td><div align=center>张**</div></td><td><div align=center>2012-10-10 11:25:09</div></td><td><div align=center><font color=#669900>已维修</font></div></td></tr><tr><td><div align=center><a href=index.asp?T=gdshow&gdid=BX20121010111957 title=点击查看该工单号的详情>BX20121010111957</a></div></td><td><div align=center>fsdafdsa</div></td><td><div align=center>******</div></td><td><div align=center>张**</div></td><td><div align=center>2012-10-10 11:19:57</div></td><td><div align=center><font color=#669900>已维修</font></div></td></tr><tr><td colspan=7><div align=center>页次: 1/2页数: <a href=index.asp?CurPage=0>首页</a> 1<a href=index.asp?CurPage=2>2</a></div></td></tr></table></div>
</DIV></DIV>
      <DIV class=bl></DIV>
      <DIV class=br></DIV>
      <DIV class=bm></DIV></DIV>

</TD>
    </TR></TBODY></TABLE>
 楼主| 发表于 2012-10-12 14:08:11 | 显示全部楼层
没人会吗?  郁闷
发表于 2012-10-13 23:58:51 | 显示全部楼层
你登陆不了的现象说一下啊,这样才行,或许用post方式更好。
发表于 2012-10-14 09:26:27 | 显示全部楼层
就这样稀里哗啦一大串,谁爱帮你解决 ??

自己查手册想办法去。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-12-26 21:37 , Processed in 0.072410 second(s), 21 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表