【发布时间】:2018-04-28 11:41:49
【问题描述】:
为什么我不能一个接一个地运行这些功能?函数_IEFormElementSetValue() 和_IEAction() 不能一起工作?
代码:
#include <IE.au3>
Local $oIE = _IECreate("http://www.google.com")
WinSetState("[ACTIVE]", "", @SW_MAXIMIZE)
; Feature 1: inserts the text into the search box google
Local $oDigita = _IEGetObjByName($oIE, "q")
_IEFormElementSetValue($oDigita, "Nome pesquisado")
; Feature 2: option button "I'm feeling lucky"
Local $oClica = _IEGetObjByName($oIE, "btnI")
_IEAction($oClica, "click")
【问题讨论】:
标签: autoit