回复 1# smooth
没看懂你什么意思,不知道你是不是想要这样的#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 302, 169, 372, 262)
$Button1 = GUICtrlCreateButton("Button1", 48, 74, 75, 25)
$Button2 = GUICtrlCreateButton("Button2", 152, 72, 75, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
MsgBox(0,"Button1","Button1","",$Form1)
Case $Button2
MsgBox(0,"Button2","Button2","",$Form1)
EndSwitch
WEnd
|