a62105400 发表于 2010-11-29 18:03:13

谁可以用AU3后台点击这个网页的按钮呢?

本帖最后由 a62105400 于 2010-11-29 21:32 编辑

Opt("WinTitleMatchMode",2)
#include <IE.au3>
$win=WinGetHandle("搜狗搜索引擎")
$oIE=_IEAttach($win,"embedded")

$oFrame = _IEGetObjById($oIE, "stb")
If @error Then MsgBox(0,"",@error)
If Not IsObj($oFrame) Then
MsgBox(0,"",$win)
else
_IEAction($oFrame,"click")
网址是 : http://www.so118.cn/?id=201328
{:face (370):} 找了半天也无法获取 这个搜狗搜索的按钮的对象 难道网页加密了?源文件里的ID=STB 是忽悠人的?

tryhi 发表于 2010-11-29 20:21:41

直接发送回车算了

a62105400 发表于 2010-11-29 20:23:24

.......别的网页都可以用代码实现的啊就算BUTTON没有ID 没有name都可以枚举
可是这个网页好像被加密一样无法通过ID 获取元素对象 。。

smartzbs 发表于 2010-11-29 20:47:14

本帖最后由 smartzbs 于 2010-11-29 21:07 编辑

为什么要点呢?它可以直接用GET,在http://www.so118.cn/,输入内容实际执行的就是:
http://www.sogou.com/sogou?query=????
????表示要查找的内容如"中国":
http://www.sogou.com/sogou?query=中国
什么个人id?后面加的?id=是广告,如果你那个ID不是你的,你理他做什么,如果是你的就当做广告了.

a62105400 发表于 2010-11-29 21:00:21

回复 4# smartzbs
这个网页是通过个人ID生成的必须运行他的搜索控件把。。 不能像你那样拼出关键字来

我就是想知道这个网页是怎么做到 有元素ID 却不能获取 元素的对象

joy_yu 发表于 2010-11-29 21:28:45

可以用ENTER啊

a62105400 发表于 2010-11-29 21:32:01

回复 6# joy_yu
我知道啊
但我想用代码控制点击
用enter的话需要考虑窗口的焦点在哪的

a62105400 发表于 2010-11-29 22:11:23

我把网页源码贴出 请高手分析   是不是它这个用了IFRAME框架就牛逼些?
{:face (394):}
http://www.so118.cn/?id=201328
<HTML><HEAD><TITLE>搜狗搜索引擎 - 上网从搜狗开始</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK href="/sogou/style.css" type=text/css rel=stylesheet>
<SCRIPT src="js/sogou.js" type=text/javascript></SCRIPT>
</HEAD>
<BODY style="OVERFLOW-Y: hidden; OVERFLOW-X: hidden" bottomMargin=0 leftMargin=0 topMargin=0 rightMargin=0>
<DIV id=ll></DIV>
<DIV id=tl></DIV><IFRAME src="http://www.sogou.com/index.htm?pid=sogou-netb-9e984c108157cea7-0711" frameBorder=0 width="100%" scrolling=no height=1200></IFRAME>
<DIV id=ad1>
<SCRIPT src="http://ad.so118.cn/ad1.js" type=text/javascript></SCRIPT>
<IFRAME marginWidth=0 marginHeight=0 src="http://ad.so118.cn/adshtml/ad1.htm" frameBorder=0 width=495 scrolling=no height=30 allowTransparency></IFRAME></DIV>
<DIV id=ad2>
<SCRIPT src="http://ad.so118.cn/ad2.js" type=text/javascript></SCRIPT>
<IFRAME marginWidth=0 marginHeight=0 src="http://ad.so118.cn/495x70/495x70.htm" frameBorder=0 width=495 scrolling=no height=70 allowTransparency></IFRAME></DIV>
<SCRIPT src="http://ad.so118.cn/right_float/rightfloat.js" type=text/javascript></SCRIPT>

<DIV id=1 style="Z-INDEX: 99999; LEFT: 804px; POSITION: absolute; TOP: 490px"><IFRAME marginWidth=0 marginHeight=0 src="http://ad.so118.cn/right_float/right_flash.html" frameBorder=0 width=200 scrolling=no height=130 allowTransparency></IFRAME></DIV><IFRAME src="http://pv.so118.cn/pv?id=201328" frameBorder=0 width=0 scrolling=no height=0></IFRAME>
<DIV style="DISPLAY: none">
<SCRIPT language=JavaScript src="http://s4.cnzz.com/stat.php?id=1010294&amp;web_id=1010294&amp;show=pic"></SCRIPT>
<A title=站长统计 href="http://www.cnzz.com/stat/website.php?web_id=1010294" target=_blank><IMG hspace=0 src="http://icon.cnzz.com/pic.gif" border=0></A><IMG height=0 src="http://zs7.cnzz.com/stat.htm?id=1010294&amp;r=&amp;lg=zh-cn&amp;ntime=0.24714500 1291034427&amp;repeatip=41&amp;rtime=0&amp;cnzz_eid=74731171-1291012825-&amp;showp=1024x768&amp;st=10&amp;sin=&amp;res=0" width=0 border=0></DIV></BODY></HTML>

kood481748 发表于 2010-11-30 12:54:16

为什么有这么多人去研究搜索作弊呢,人家的反作弊系统发现异常就封号封IP,看你玩个锤子

a62105400 发表于 2010-12-1 01:18:32

我快完成了,这不是作弊
页: [1]
查看完整版本: 谁可以用AU3后台点击这个网页的按钮呢?