#include <GuiConstantsEx.au3>
#include <GuiStatusbar.au3>
#NoTrayIcon
Dim $pzwj, $mc, $bb, $gs, $zz, $ck, $d[11], $rjmc, $rjsm, $i, $j, $zs, $ck, $bt[101], $nr[101], $xz[101], $az, $gy
$pzwj = ("setup.ini")
$mc = IniRead($pzwj, "配置", "名称", "仿软件疯狂装")
$bb = IniRead($pzwj, "配置", "版本", "V2.0")
$gs = IniRead($pzwj, "配置", "公司", "青云网络")
$zz = IniRead($pzwj, "配置", "作者", "阿SIR")
$ck = GuiCreate($mc & $bb & " " & $gs & " " & $zz & "出品", 600, 488)
GuiCtrlCreateTab(0, 70, 600, 372)
for $j = 1 to 10
$d[$j] = IniRead($pzwj, "大类名称", $j, "没有")
if $d[$j] = "没有" then
else
GuiCtrlCreateTabItem($d[$j])
GuiCtrlCreateGroup("",5,86,140,350)
GuiCtrlCreateGroup("",143,86,452,350)
for $i = 1 to 100
$azwj = IniRead($pzwj, $i, "文件", "")
$rjmc = IniRead($pzwj, $i, "名称", "没有")
$rjsm = IniRead($pzwj, $i, "说明", "该软件没有说明信息")
$bt[$i] = IniRead($pzwj, $i, "标题" & $i, "没有找到内容")
$nr[$i] = IniRead($pzwj, $i, "内容" & $i, "没有找到内容")
if $j = Ceiling($i/10) then
if $rjmc = "没有" then
Else
$xz[$i] = GuiCtrlCreateCheckbox($rjmc, 14, 66+($i-($j-1)*10)*34)
GuiCtrlCreateLabel($rjsm, 151, 70+($i-($j-1)*10)*34)
endif
endif
next
endif
next
GuiCtrlCreateTabItem("")
GuiCtrlCreateProgress(15, 446, 361, 20)
$az = GuiCtrlCreateButton("&S 安 装", 390, 445, 60, 22)
GUICtrlSetState(-1, $GUI_DISABLE)
Global $check=0
$az = GuiCtrlCreateButton("&A 关 于", 460, 445, 60, 22)
$tc = GuiCtrlCreateButton("&X 退 出", 530, 445, 60, 22)
Local $a_PartsRightEdge[3] = [144, 420, -1]
Local $a_PartsText[3] = [@TAB & $mc & $bb , @TAB & $gs & " " & $zz & "出品", @TAB & @YEAR & "." & @MON & "." & @MDAY]
_GUICtrlStatusBar_Create($ck, $a_PartsRightEdge, $a_PartsText)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $tc
Exit
For $i=1 To 100
If $msg=$xz[$i] Then
If BitAND(GUICtrlRead($xz[$i]),$GUI_CHECKED) Then
$check+=1
EndIf
If BitAND(GUICtrlRead($xz[$i]),$GUI_UNCHECKED) Then
$check-=1
EndIf
If $check <> 0 Then
GUICtrlSetState($button,$GUI_ENABLE)
Else
GUICtrlSetState($button,$GUI_DISABLE)
EndIf
EndIf
Next
EndSwitch
WEnd |