#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 615, 438, 192, 124)
$Label1 = GUICtrlCreateLabel("Label1", 184, 168, 164, 17)
GUISetState(@SW_SHOW)
#endregion ### END Koda GUI section ###
Opt("GUIOnEventMode", 1);OnEvent模式
GUISetOnEvent($GUI_EVENT_CLOSE, "_Exit")
myfunc()
While 1
Sleep(100)
WEnd
Func myfunc()
Local $i
For $i = 0 To 10000000
GUICtrlSetData($Label1, $i)
Next
EndFunc ;==>myfunc
Func _Exit()
Exit
EndFunc ;==>_Exit
|