回复 4# komaau3
当然网页弹出窗口时,代码就会暂停,有什么办法让他点确认啊。
#include <IE.au3>
AdlibRegister ( "test" ,1000)
$oIE = _IECreate('http://www.yz918.com/plus/diy.php?action=post&diyid=2', 0)
$oFrame1 = _IEFrameGetCollection($oIE, 1)
$oFrame2 = _IEFrameGetCollection($oFrame1, 0)
$oFrame2.document.body.innerhtml = '<p>ss</p><p>bbbbbbbbbbbbbbbb</p>'
$c=_IEGetObjById($oIE,"submit")
$c.click
Func test()
$handle = WinGetHandle('Microsoft Internet Explorer')
If $handle<>"" Then
MsgBox(0,'','找到窗口')
ControlClick($handle, "", "[CLASS:Button; TEXT:确定(&O);INSTANCE:1]")
EndIf
EndFunc ;==>test
|