[自己解决了]自动搜索不能埴写关键词。用www.google.com又可以
本帖最后由 yang3114 于 2010-8-31 16:05 编辑#include <IE.au3>
$oIE = _IECreate ("http://58.ieeie.com/sogou.aspx?u=xhswb")
$oForm = _IEFormGetObjByName ($oIE, "f")
$oQuery = _IEFormElementGetObjByName ($oForm, "q")
_IEFormElementSetValue ($oQuery, "AutoIt IE.au3")
_IEFormSubmit ($oForm)
用这个又可以
#include <IE.au3>
$oIE = _IECreate ("www.google.com")
$oForm = _IEFormGetObjByName ($oIE, "f")
$oQuery = _IEFormElementGetObjByName ($oForm, "q")
_IEFormElementSetValue ($oQuery, "AutoIt IE.au3")
_IEFormSubmit ($oForm)
请高手帮我改一下。 有没有高手啊。帮我改一下上面那段代码 看了一下你的网页
那个form是sf
输入框是query
但以下代码不响应,不知哪里出错了
#include <IE.au3>
$oIE = _IECreate ("http://58.ieeie.com/sogou.aspx?u=xhswb")
$oForm = _IEFormGetObjByName ($oIE, "sf")
$oQuery = _IEFormElementGetObjByName ($oForm, "query")
;~ $OK = _IEGetObjByID($oIE, "stb");通过工具查询到得按钮ID值
_IEFormElementSetValue ($oQuery, "AutoIt IE.au3")
Send("AutoIt IE.au3")
Send("{enter}")
_IEFormSubmit ($oForm)
页:
[1]