高手帮我看看下面的代码,使用ObjEvent之后,打开新窗口的时候会AU3会崩溃#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <IE.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 615, 438, 238, 175)
$oIE = ObjCreate("Shell.Explorer.2")
GUICtrlCreateObj($oIE, 4, 4, 607, 389)
$Button1 = GUICtrlCreateButton("Button1", 12, 402, 75, 25)
$Button2 = GUICtrlCreateButton("Button2", 90, 402, 75, 25)
ObjEvent($oIE, "command")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
_IENavigate($oIE, "http://www.baidu.com")
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
func conmand()
msgbox(0,"","111")
EndFunc
|