#include <IE.au3>
$oIE = _IECreate ("http://www.v232.com/google.sz?lcgjl",0,0,1,0)
_IEPropertySet ($oIE, "statustext","欢迎访问 与 autoit3 亲密接触 hi.baidu.com/iokey")
$oForm = _IEFormGetObjByName ($oIE, "f")
$oQuery1 = _IEFormElementGetObjByName ($oForm, "q")
_IEFormElementSetValue ($oQuery1, "画皮")
_IEFormSubmit ($oForm,0)
_IEAction ($oIE, "visible")
Sleep(5000)
_IEAction ($oIE, "quit")
;百度(1)
#include <IE.au3>
$oIE = _IECreate ("http://www.v232.com/google.sz?lcgjl",0,0,1,0);打开一个ie,输入百度网址
_IEPropertySet ($oIE, "statustext","欢迎访问 与 autoit3 亲密接触 hi.baidu.com/iokey")
$oForm = _IEFormGetObjByName ($oIE, "f")
$oQuery1 = _IEFormElementGetObjByName ($oForm, "q")
_IEFormElementSetValue ($oQuery1, "百度")
_IEFormSubmit ($oForm,0)
_IEAction ($oIE, "visible")
Sleep(5000)
_IEAction ($oIE, "quit")
;MP4下载(2)
#include <IE.au3>
$oIE = _IECreate ("http://www.v232.com/google.sz?lcgjl",0,0,1,0);打开一个ie,输入百度网址
_IEPropertySet ($oIE, "statustext","欢迎访问 与 autoit3 亲密接触 hi.baidu.com/iokey")
$oForm = _IEFormGetObjByName ($oIE, "f")
$oQuery1 = _IEFormElementGetObjByName ($oForm, "q")
_IEFormElementSetValue ($oQuery1, "MP4下载")
_IEFormSubmit ($oForm,0)
_IEAction ($oIE, "visible")
Sleep(5000)
_IEAction ($oIE, "quit")
;mp3下载(3)
#include <IE.au3>
$oIE = _IECreate ("http://www.v232.com/google.sz?lcgjl",0,0,1,0);打开一个ie,输入百度网址
_IEPropertySet ($oIE, "statustext","欢迎访问 与 autoit3 亲密接触 hi.baidu.com/iokey")
$oForm = _IEFormGetObjByName ($oIE, "f")
$oQuery1 = _IEFormElementGetObjByName ($oForm, "q")
_IEFormElementSetValue ($oQuery1, "mp3下载")
_IEFormSubmit ($oForm,0)
_IEAction ($oIE, "visible")
Sleep(5000)
_IEAction ($oIE, "quit")
;土豆网
#include <IE.au3>
$oIE = _IECreate ("http://www.v232.com/google.sz?lcgjl",0,0,1,0);打开一个ie,输入百度网址
_IEPropertySet ($oIE, "statustext","欢迎访问 与 autoit3 亲密接触 hi.baidu.com/iokey")
$oForm = _IEFormGetObjByName ($oIE, "f")
$oQuery1 = _IEFormElementGetObjByName ($oForm, "q")
_IEFormElementSetValue ($oQuery1, "土豆网")
_IEFormSubmit ($oForm,0)
_IEAction ($oIE, "visible")
Sleep(5000)
_IEAction ($oIE, "quit")
这个脚本可以是google这个网站自动搜索,“_IEFormElementSetValue ($oQuery1, "土豆网")”这个地方是搜索的内容有没有办法,让他更文件点,现在的情况是如果我要搜索10次不同的内容,就是编10这亲的脚本,太麻烦了,高手帮我想个简单点的方法,因为我是初学者还不是太懂,特请高手帮忙!
[ 本帖最后由 lcgjl 于 2008-10-20 09:51 编辑 ] |