回复 9# wsfda
这个我在本地试了也可以
但是换这个就不可以,难道写错了#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <IE.au3>
Global $oIE = _IECreateEmbedded()
GUICreate("Embedded Web control Test", 820, 580, _
0, 0, _
$WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN)
Global $GUIActiveX = GUICtrlCreateObj($oIE, 0, 0, 800, 480)
Global $test = GUICtrlCreateButton('test', 30, 500, 60, 20)
GUISetState()
_IENavigate($oIE, "http://www.kindsoft.net/ke/examples/demo-01.html")
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $test
Global $myfrom = _IEFormGetObjByName($oIE, "example")
Global $oText = _IEFormElementGetObjByName($myfrom, "content1")
MsgBox(0, "Form Element Value", _IEFormElementGetValue($oText))
EndSelect
WEnd
GUIDelete()
Exit
|