|
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 347, 130, 512, 399)
$Label1 = GUICtrlCreateLabel("Label1", 16, 33, 36, 17)
$Input1 = GUICtrlCreateInput("Input1", 64, 29, 257, 21)
$Button1 = GUICtrlCreateButton("Button1", 144, 80, 81, 33)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
我现在是想让点一下$Button1 时执行代码,但是把这个代码直接放AU3里不能运行,提示 while error |
|