找回密码
 加入
搜索
查看: 4417|回复: 4

[IE类操作] 怎样用AU3自动对网页内容进行点击

[复制链接]
发表于 2010-2-8 20:00:14 | 显示全部楼层 |阅读模式
下面是公司内网的一个网页源码:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
        <HEAD>
                <title>AppList</title>
                <meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
                <meta name="CODE_LANGUAGE" Content="C#">
                <meta name="vs_defaultClientScript" content="JavaScript">
                <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
                <LINK href="/Desktop/Skins/Default/CSS/Desktop.css" type="text/css" rel="stylesheet"></LINK>
        </HEAD>
        <body MS_POSITIONING="FlowLayout">
                <form name="AppList" method="post" action="applist.aspx?%24ctlid=78ac2796-bdc5-470f-bcd5-e35f60743d60" id="AppList">
<input type="hidden" name="__VIEWSTATE" value="dDw4OTQyOTE0MjI7dDw7bDxpPDM+Oz47bDx0PDtsPGk8Mz47PjtsPHQ8cDxsPF8hSXRlbUNvdW50Oz47bDxpPDE0Pjs+PjtsPGk8MD47aTwxPjtpPDI+O2k8Mz47aTw0PjtpPDU+O2k8Nj47aTw3PjtpPDg+O2k8OT47aTwxMD47aTwxMT47aTwxMj47aTwxMz47PjtsPHQ8O2w8aTwwPjs+O2w8dDxAPDljZDBlM2U0LTEwZGEtNDE2OS1hYWQ0LTEzYTRlZDlmY2MxOTtEYXNoYm9hcmQ75aSn6L+e55+z5YyW5YiG5YWs5Y+4566h55CG5Luq6KGo55uYOz47Oz47Pj47dDw7bDxpPDA+Oz47bDx0PEA8MWE3OWE5OTYtZWVkZS00MTU4LThhNzMtNTI2Y2U2ZDY1MzgwO0VSUOaOpeWPozvnlJ/kuqfnu5/orqHmlbDmja47Pjs7Pjs+Pjt0PDtsPGk8MD47PjtsPHQ8QDw5NTk5MDYxMS0wMTcxLTRjMjAtOTU5MS02MDkyMjI1ZGU4MzM75pON5L2c566h55CGO+eUn+S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6K6h5oql6KGoOz47Oz47Pj47dDw7bDxpPDA+Oz47bDx0PEA8MTdhOGQ2ZDctYjYxNi00NzUwLTkzOGYtNzYwZGJlOTE5ZTk5O+WunuaXtuaVsOaNruW6k+W6lOeUqO+8iOasoui/juS9v+eUqOaWsOWinuWKn+iDve+8iTvmtYHnqIvlm77jgIHotovlir/lm77jgIHlt6Xoibrlj7DluJDjgIHmlbDmja7lvZXlhaXjgIHoo4Xnva7lubPnqLPnjofjgIHnianmlpnmtYHlkJHmtYHnqIvlm77vvIjmlrDlop7lip/og73vvInjgIHoo4Xnva7kuI7nvZDljLrmlLbku5jph4/mr5Tlr7nvvIjmlrDlop7lip/og73vvIk7Pjs7Pjs+Pjt0PDtsPGk8MD47PjtsPHQ8QDxiMWEyYmI0Zi0wZmI5LTQxZTEtYjNmNS03NjAwYTA4MTRhMmQ76KOF572u6IO96ICX6K6h566X57O757ufO+ijhee9ruiDveiAl+iuoeeul+ezu+e7nzs+Ozs+Oz4+O3Q8O2w8aTwwPjs+O2w8dDxAPDQ1NWY0YmIzLTQ0NWMtNDM0ZS1hZDZiLWRmMWZkMDMwM2I0NDvoo4Xnva7nianmlpnnrqHnkIY76KOF572u54mp5paZ6K6h6YeP5Y+K5pWw5o2u5qCh5q2j566h55CGOz47Oz47Pj47dDw7bDxpPDA+Oz47bDx0PEA8ZDUzMmI2MmUtZjhjYi00MWFjLWI2NTktZDliNmE1MWM0YzFjO+acgOe7iOeUqOaIt+aJi+WGjDvnlKjmiLfluK7liqnmlofmoaM7Pjs7Pjs+Pjs+Pjs+Pjs+Pjs+dv7qUssgBvIiY/tZr7QKCeZM0m0=" />

                        <OBJECT id="DFEM" style="display:none;" codebase="DFEM.cab#version=2,0,0,0" classid="clsid:C0A7F568-135C-4A35-8C87-E4CF5DFC2CAC"></OBJECT>
                       
                                        <span class="PickerName" onclick="loadApp('9cd0e3e4-10da-4169-aad4-13a4ed9fcc19')">
                                                Dashboard
                                        </span>
                                        <hr>
                               
                                        <span class="PickerName" onclick="loadApp('1a79a996-eede-4158-8a73-526ce6d65380')">
                                                ERP接口
                                        </span>
                                        <br>
                                        <span class="PickerDesc">
                                                生产统计数据
                                        </span>
                                        <hr>
                               
                                        <span class="PickerName" onclick="loadApp('95990611-0171-4c20-9591-6092225de833')">
                                                操作管理
                                        </span>
                                        <br>
                               
                                        <span class="PickerName" onclick="loadApp('455f4bb3-445c-434e-ad6b-df1fd0303b44')">
                                                装置物料管理
                                        </span>
                                        <br>

                                        <span class="PickerName" onclick="loadApp('d532b62e-f8cb-41ac-b659-d9b6a51c4c1c')">
                                                最终用户手册
                                        </span>
                                        <br>
                                        <span class="PickerDesc">
                                                用户帮助文档
                                        </span>
                                        <hr>
                                <BR>
                </form>
                <script language="javascript">
                        function loadApp(appID)
                        {
                                document.DFEM.RaiseEvent("honeywell.pks.workcenter.desktop","LoadApp",appID);
                        }
                </script>
        </body>
</HTML>
我想自动点击“操作管理”进入下一个页面,怎样实现?谢谢
发表于 2010-2-8 21:03:05 | 显示全部楼层
IELinkClickByText ($oIE, "操作管理")
 楼主| 发表于 2010-2-8 21:46:40 | 显示全部楼层
IELinkClickByText ($oIE, "操作管理")
mingid 发表于 2010-2-8 21:03

可是这行代码在这个网页中竟然没有反应,不知道为什么?
发表于 2010-2-9 09:59:04 | 显示全部楼层
看看这个网页是不是框架结构?
这种内网的网页一般都是的,上面是标题,
左面是菜单,右边是内容,所以
$oFrame = _IEFrameGetCollection ($oIE, 2)
_IELinkClickByText ($oFrame, "操作管理")
发表于 2010-4-21 18:02:44 | 显示全部楼层
组件生成的也能点吗
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-11-16 11:53 , Processed in 0.284494 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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