例如下例我就获取不到。应该有点小错误,高手指正一下:#Region ;**** 参数创建于 ACNWrapper_GUI ****
#AutoIt3Wrapper_outfile=dom.exe
#EndRegion ;**** 参数创建于 ACNWrapper_GUI ****
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <IE.au3>
#include <Array.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 839, 496, 192, 124)
Local $avArray[8]
$avArray[5]="0"
$avArray[1]="1"
$avArray[2]="5"
$avArray[3]="6"
$avArray[4]="8"
$avArray[0]="9"
$avArray[6]="2"
$avArray[7]="3"
$oIE = ObjCreate("Shell.Explorer.2")
$GUIActiveX = GUICtrlCreateObj($oIE, 16, 16, 813, 413)
$Button1 = GUICtrlCreateButton("Button1", 32, 444, 489, 33, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$x = Random(0,4, 1)
$y = Random(0, 4, 1)
$z = Random(0, 4, 1)
$e= Random(0, 4, 1)
$oIE.navigate("http://4y.cn/reg/domainapp.asp?productcode=domcom")
_IELoadWait($oIE)
$oForm = _IEFormGetObjByName($oIE, "domainreg")
$oQuery = _IEFormElementGetObjByName($oForm, "domainname")
_IEFormElementSetValue($oQuery, $avArray[$x] &$avArray[$z] & $avArray[$y])
$oQuery = _IEFormElementGetObjByName($oForm, "submit")
_IEAction($oQuery, "click")
$sText = _IEBodyReadText($oIE)
if StringInStr($sText,"已被注册,whois查询") then
msgbox(0,"","找到指定字符串")
endif
EndSwitch
WEnd
|