#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("太阳网在线电影", 292, 175)
$Button1 = GUICtrlCreateButton("Button1", 16, 16, 73, 25, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Button2", 109, 16, 73, 25, $WS_GROUP)
$Button3 = GUICtrlCreateButton("Button3", 202, 16, 73, 25, $WS_GROUP)
$Button4 = GUICtrlCreateButton("Button4", 16, 61, 73, 25, $WS_GROUP)
$Button5 = GUICtrlCreateButton("Button5", 109, 61, 73, 25, $WS_GROUP)
$Button6 = GUICtrlCreateButton("Button6", 202, 61, 73, 25, $WS_GROUP)
$Button7 = GUICtrlCreateButton("Button7", 16, 106, 73, 25, $WS_GROUP)
$Button8 = GUICtrlCreateButton("Button8", 109, 106, 73, 25, $WS_GROUP)
$Button9 = GUICtrlCreateButton("Button9", 202, 106, 73, 25, $WS_GROUP)
$Label1 = GUICtrlCreateLabel("如果大家有比较好的免费电影请推荐给网管添加", 19, 148, 256, 17)
For $i = 1 To 9
$var = IniRead( "在线电影.ini", "按钮名称","按钮"& $i,"")
GUICtrlSetData( "$Button" & $i,$var)
Next
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
红色的GUICtrlSetData( "$Button" & $i,$var)执行后相当于代码GUICtrlSetData(