本帖最后由 顽固不化 于 2009-7-20 15:06 编辑
说白了,楼主就想人家给你写代码。基础的东西需要自己去钻研,永远索求会一事无成的。#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
Dim $CK[6],$Soft[6]
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 420, 287, 192, 124)
$CK[1] = GUICtrlCreateCheckbox("Checkbox1", 24, 24, 153, 25)
$CK[2] = GUICtrlCreateCheckbox("Checkbox2", 24, 56, 161, 25)
$CK[3] = GUICtrlCreateCheckbox("Checkbox3", 24, 88, 161, 25)
$CK[4] = GUICtrlCreateCheckbox("Checkbox4", 24, 120, 169, 25)
$CK[5] = GUICtrlCreateCheckbox("Checkbox5", 24, 152, 81, 25)
$Soft[1]="1.exe"
$Soft[2]="2.exe"
$Soft[3]="3.exe"
$Soft[4]="4.exe"
$Soft[5]="5.exe"
$AutoIns=GUICtrlCreateButton("安装所选",250,200,150,20)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $AutoIns
GUISetState(@SW_DISABLE)
for $i=1 to 5
if GUICtrlRead($CK[$i])=1 Then ShellExecute($Soft[$i])
Next
GUISetState(@SW_ENABLE)
EndSwitch
WEnd
|