#Region ;**** 参数创建于 ACNWrapper_GUI ****
#AutoIt3Wrapper_icon=CHK_D.ico
#AutoIt3Wrapper_Compression=4
#AutoIt3Wrapper_Res_Comment=WinXP & Win7
#AutoIt3Wrapper_Res_Description=KQ制作,判断D盘(系统部署使用).
#AutoIt3Wrapper_Res_Fileversion=1.1.0.0
#AutoIt3Wrapper_Res_LegalCopyright=K丶Q 製作。
#EndRegion ;**** 参数创建于 ACNWrapper_GUI ****
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ###
$Title = GUICreate("系统部署使用,判断D盘.",292,328,-1,-1)
$Ini = IniReadSection(@ScriptDir & "\CHK_D.ini","Setup")
GUISetFont(9,800,0,"微软雅黑")
$Icon1 = GUICtrlCreateIcon(@ScriptDir & "\CHK_D.ico", -0,11,25,32,32)
$Icon2 = GUICtrlCreateIcon(@ScriptDir & "\CHK_D.ico", -0,11,70,32,32)
$Icon3 = GUICtrlCreateIcon(@ScriptDir & "\CHK_D.ico", -0,11,115,32,32)
$Icon4 = GUICtrlCreateIcon(@ScriptDir & "\CHK_D.ico", -0,11,160,32,32)
$Icon5 = GUICtrlCreateIcon(@ScriptDir & "\CHK_D.ico", -0,11,205,32,32)
$Checkbox1 = GUICtrlCreateCheckbox("很抱歉,检测不到安装程序。",55,25,200,30,-1,$WS_EX_CLIENTEDGE)
$Checkbox2 = GUICtrlCreateCheckbox("很抱歉,检测不到安装程序。",55,70,200,30,-1,$WS_EX_CLIENTEDGE)
$Checkbox3 = GUICtrlCreateCheckbox("很抱歉,检测不到安装程序。",55,115,200,30,-1,$WS_EX_CLIENTEDGE)
$Checkbox4 = GUICtrlCreateCheckbox("很抱歉,检测不到安装程序。",55,160,200,30,-1,$WS_EX_CLIENTEDGE)
$Checkbox5 = GUICtrlCreateCheckbox("很抱歉,检测不到安装程序。",55,205,200,30,-1,$WS_EX_CLIENTEDGE)
;检测到安装程序.
GUICtrlSetData($Checkbox1,$Ini[1][1])
GUICtrlSetData($Checkbox2,$Ini[2][1])
GUICtrlSetData($Checkbox3,$Ini[3][1])
GUICtrlSetData($Checkbox4,$Ini[4][1])
GUICtrlSetData($Checkbox5,$Ini[5][1])
;检测到安装程序的状态.
GUICtrlSetState($Checkbox1,$GUI_CHECKED)
GUICtrlSetState($Checkbox2,$GUI_CHECKED)
GUICtrlSetState($Checkbox3,$GUI_CHECKED)
GUICtrlSetState($Checkbox4,$GUI_CHECKED)
GUICtrlSetState($Checkbox5,$GUI_CHECKED)
;检测不到安装成像鼓的状态.
GUICtrlSetState($Checkbox1,$GUI_DISABLE)
GUICtrlSetState($Checkbox2,$GUI_DISABLE)
GUICtrlSetState($Checkbox3,$GUI_DISABLE)
GUICtrlSetState($Checkbox4,$GUI_DISABLE)
GUICtrlSetState($Checkbox5,$GUI_DISABLE)
$Button1 = GUICtrlCreateButton("安装(&S)",82,264,127,30,$BS_DEFPUSHBUTTON)
Dim $Title_AccelTable[1][2] = [["!S",$Button1]]
GUISetAccelerators($Title_AccelTable)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
我想要的效果图.