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

如何自动点击百度搜索结果

[复制链接]
发表于 2008-11-18 18:55:32 | 显示全部楼层 |阅读模式
#include <IE.au3>
$oIE = _IECreate ("www.baidu.com",0,0,1,0);打开一个ie,输入百度网址
_IEPropertySet ($oIE, "toolbar", 0)
_IEPropertySet ($oIE, "width", 800)
_IEPropertySet ($oIE, "height", 600)
_IEPropertySet ($oIE, "resizable", 0)
_IEPropertySet ($oIE, "title","我打开的百度,我做 主")
_IEPropertySet ($oIE, "statustext","欢迎访问 与 autoit3 亲密接触 hi.baidu.com/iokey")
$oForm = _IEFormGetObjByName ($oIE, "f")
$oQuery1 = _IEFormElementGetObjByName ($oForm, "wd")
_IEFormElementSetValue ($oQuery1, "与 autoit3 亲密接触")
_IEFormSubmit ($oForm,1)
_IEAction ($oIE, "visible")
Sleep(5000)
MsgBox(0,"提醒","确定退出IE")
_IEAction ($oIE, "quit")

搜索出列表后如何点击其中某个链接?

[ 本帖最后由 37564751 于 2008-12-10 01:11 编辑 ]
发表于 2008-11-19 08:51:49 | 显示全部楼层
_IELinkClickByText()
 楼主| 发表于 2008-11-21 14:43:23 | 显示全部楼层
这个函数不太好用~基本没效果
发表于 2008-11-21 15:52:41 | 显示全部楼层
分析HTML源码取出连接来点,不过这个办法啊~会死人的,哈哈
发表于 2012-8-21 18:20:59 | 显示全部楼层
我对这个问题也很感兴趣,可没有人回答啊
发表于 2013-12-6 16:24:12 | 显示全部楼层
求大神出来解决难题,
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-28 17:24 , Processed in 0.106306 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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