这样呢?#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
GUICreate ("测试",500,250)
GUICtrlSetDefColor (0xff0000)
$Label1 = GUICtrlCreateLabel ( "测试1" ,12,35)
$Label2 = GUICtrlCreateLabel ( "测试2" ,12,90)
$Label3 = GUICtrlCreateLabel ( "测试3" ,12,140)
$Label4 = GUICtrlCreateLabel ( "测试4" ,12,190)
$Label5 = GUICtrlCreateLabel ( "测试5" ,130,16,80,20)
GUICtrlSetDefColor (0x000000)
$Label5 = GUICtrlCreateLabel ( "测试6" ,190,16,80,20)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
|