#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#region ### START Koda GUI section ### Form=
Dim $sq = 5 ;软件列表数量
$Form1 = GUICreate("列表", 481, 85 * $sq + 60, -1, -1)
$www = GUICtrlCreateLabel("点击查看更多软件", 170, 86 * $sq, 200, 17)
GUICtrlSetFont($www, 9.5, -1, 4)
GUICtrlSetColor($www, 0x0000FF)
GUICtrlSetCursor($www, 0)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateLabel("上面仅列出本工具支持的软件.", 5, 86 * $sq, 165, 17)
GUICtrlSetColor(-1, 0xFF0000)
Local $systemtxt[1][3]
dim $cc=0
For $l = 1 To $sq Step 1
If $l > 1 Then
$s = $l - 1
Dim $g = 85 * $s
Else
Dim $g = 0
EndIf
$txt = GUICtrlCreateLabel("xxxxxxxxxxx软件", 8, $g + 5, 303, 20)
GUICtrlSetFont(-1, 11, 800, 0, "MS Sans Serif")
$txt = GUICtrlCreateLabel("大小:10MB", 16, 56 + $g, 77, 17)
$txt = GUICtrlCreateLabel("制作时间:2012.08.09", 104, 56 + $g, 126, 17)
$txt = GUICtrlCreateLabel("MD5:70728C6D7FE68CDD71322825DA1B641C", 16, 35 + $g, 281, 17)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0xFF0000)
ReDim $systemtxt[$cc + 1][3]
;~ ;载入控件ID到数组第一列
$systemtxt[$cc][0] = GUICtrlCreateLabel(">>点击查看说明", 240, 56 + $g, 88, 17)
;载入网址到数组第二列
$systemtxt[$cc][1] = IniRead("urllist.ini","url",$cc+1,"1")
GUICtrlSetFont($systemtxt[$cc][0], 9.5, -1, 4)
GUICtrlSetColor($systemtxt[$cc][0], 0x0000FF)
GUICtrlSetCursor($systemtxt[$cc][0], 0)
$txt = GUICtrlCreateButton("HTTP下载", 392, 32 + $g, 75, 17)
$txt = GUICtrlCreateButton("迅雷下载", 392, 56 + $g, 75, 17)
GUICtrlCreateLabel("", 0, 80 + $g, 485, 5, $SS_ETCHEDHORZ) ;;分割线
$cc=$cc+1
Next
GUISetState(@SW_SHOW)
#endregion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $www
ShellExecute("www.baidu.com")
;判断用户点击控件ID
Case $systemtxt[0][0] To $systemtxt[$cc-1][0]
For $i=0 To $cc-1
;捕获被点击控件ID
If $systemtxt[$i][0]=$nMsg Then
;控件ID标示对应网址列表序号,实现对应点击
ShellExecute($systemtxt[$i][1])
;~ MsgBox(0,0,$i)
EndIf
Next
;~ ShellExecute("www.baidu.com/xxxxxx")
EndSwitch
WEnd
问题:点击控件$systemtxt[$l] 弹出对应的网址。