本帖最后由 johnss74 于 2009-7-9 08:15 编辑 #include <IE.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$GUI = GUICreate("Autoit3.3", 1020, 715,0,0)
GUISetFont(9, 400, -1, "MS Sans Serif")
$oIE2 = ObjCreate("Shell.Explorer.2")
$Breaktime = GUICtrlCreateObj($oIE2, 0, 120, 1020, 600)
$login = GUICtrlCreateButton("&Login", 305,70, 100)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Select
Case $nMsg = $GUI_EVENT_CLOSE
ExitLoop
Case $nMsg = $login
$oIE2.navigate ("http://member.eccn.com/mbr_reg.asp")
_IELoadWait ($oIE2)
$oForm = _IEFormGetObjByName ($oIE2, "form1")
$oQuery1 = _IEFormElementGetObjByName ($oForm, "Submit")
_IEAction($oQuery1 ,"click")
;请问接下来,如何自动click 对话方框内的"确定"钮
EndSelect
WEnd
|