找回密码
 加入
搜索
查看: 6941|回复: 5

[GUI管理] 【已解决】怎样实现在这个GUI窗体里自动填写表单?

  [复制链接]
发表于 2012-11-23 16:32:52 | 显示全部楼层 |阅读模式
本帖最后由 chamlien 于 2014-8-19 20:38 编辑



里面的网页源文件是:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>登录</title>
<link rel="stylesheet" type="text/css" href="/prx/000/http/localhost/portal.css">
<script language="JavaScript" src="/prx/000/http/localhost/an_util.js"></script>
<script language="JavaScript">
<!--
if (self != top) {
        top.location = self.location;
}
if (_AN_nav_get_cookie(4) == 'open') {
        _AN_show_help('login_general');
}
//-->
</script>
</head>

<body marginwidth="0" marginheight="0" leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0">
<div class="header">
<table class="toptable" valign="top" width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><table width="100%" border="0" cellspacing="5" cellpadding="5">
      <tr>
        <td valign=top><img src="/prx/000/http/localhost/images/lock_logo.gif"></td>
      </tr>
    </table></td>
        <td>&nbsp;</td>
  </tr>
  <tr>
        <td width=90%>&nbsp;</td>
        <td width=10% valign=bottom><table cellspacing=0 cellpadding=0><tr>
                <td nowrap align=right valign=bottom>&nbsp;&nbsp;<a class="loghelp" href="javascript:_AN_show_help('login_general');">帮助</a>&nbsp;</td>
                </tr></table>
        </td>
  </tr>
  <tr>
    <td height=5 class="redline">&nbsp;</td><td class="redline">&nbsp;</td>
  </tr>
</table>
</div>
<div class="spcontent">
<table cellpadding=0 cellspacing=15>
<tr>
        <td class="title">登录</td>
</tr>

<tr><td>
        <FORM method ="POST" name="login_form" action="/prx/000/http/localhost/login" autocomplete="off">
        <table cellspacing=10>
        <tr>
                <td nowrap align="right" class="usermessage">用户名:</td>
                <td><input type="text" name="uname" size="22" maxlength="64" style="width:150" id="setfocus" autocomplete="off"></td>
        </tr>
        <tr>
                <td nowrap align="right" class="usermessage">密码:</td>
                <td><input type="password" name="pwd" size="22" maxlength="32" style="width:150" autocomplete="off"></td>
        </tr>
        <tr>
                <td></td>
                <td><input type="submit" value="登录"></td>
        </tr>
        </table>
        </form>
</td></tr>
</table>
</div>
</table>
</body>
</html>
<script language="JavaScript">
document.getElementById('setfocus').focus();
</script>

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2012-11-23 18:59:25 | 显示全部楼层
最简单的也是最蹩脚的方法就是模拟鼠键
发表于 2012-11-23 19:24:24 | 显示全部楼层
回复 1# chamlien


    经实机测试,非常容易实现~~

信息也很简单,楼主自己试着动手看看~~

附表单信息

【主页面】表单:name="login_form"
        提交地址(action):/prx/000/http/localhost/login
        <input type="text" name="uname" value="">
        <input type="password" name="pwd" value="">
        <input type="submit" name="" value="登录">
发表于 2012-11-27 10:15:31 | 显示全部楼层
回复 4# lcigvkbz


    论坛给了你学习自动化的方法,你却用它在论坛发广告…
 楼主| 发表于 2012-11-30 13:36:18 | 显示全部楼层
回复 3# annybaby


我是新手,还不知道怎么写出代码,麻烦大哥了!
发表于 2012-11-30 13:50:51 | 显示全部楼层
回复 5# chamlien


   建议搜索论坛相关的表单操作信息~~
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-11 22:37 , Processed in 0.076863 second(s), 25 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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