本帖最后由 cumtljj 于 2014-7-7 15:20 编辑
不知道这个是不是你想要的效果#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 340, 183, 192, 124)
$Button1 = GUICtrlCreateButton("计算1+1+?", 88, 56, 153, 65)
GUISetState(@SW_SHOW)
$form2 = GUICreate("计算1+1", 200, 200, 200, 200)
$Label1 = GUICtrlCreateLabel("计算进行中。。。。。", 20, 16, 124, 17)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg(1)
Select
Case $nMsg[1] = $form2
Select
Case $nMsg[0] = $GUI_EVENT_CLOSE
GUISetState(@SW_HIDE,$form2)
EndSelect
Case $nMsg[1] = $Form1
Select
Case $nMsg[0] = $Button1
GUISetState(@SW_SHOW, $form2)
Sleep(1000)
MsgBox(0, '',"1+1="& 1+1)
Case $nMsg[0] = $GUI_EVENT_CLOSE
Exit
EndSelect
EndSelect
WEnd
|