#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.14.2
Author: myName
Script Function:
Template AutoIt script.
#ce ----------------------------------------------------------------------------
; Script Start - Add your code below here
#include <ButtonConstants.au3> ;按钮头文件
#include <EditConstants.au3> ;编辑框头文件
#include <GUIConstantsEx.au3>
#include <ComboConstants.au3> ;下拉列表框头文件
#include <ProgressConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <GuiRichEdit.au3>
#include <Constants.au3> ;读取计算机出厂序列号所需头文件
#include <Timers.au3> ;计时器所需头文件
#include <file.au3> ;文本读写头文件
#Region ### START Koda GUI section ### Form=c:\程序装机软件1.kxf
$Form1_1 = GUICreate("装机软件", 534, 534, 151, 126)
$Pic1 = GUICtrlCreatePic(".\picture\background.jpg", 0, -8, 532, 540)
GUICtrlSetState($Pic1, $GUI_DISABLE)
$Progress1 = GUICtrlCreateProgress(32, 72, 470, 17, BitOR($WS_BORDER,$WS_CLIPSIBLINGS,$WS_VISIBLE))
$Group1 = GUICtrlCreateGroup("详细步骤", 32, 104, 473, 169)
$Edit_output = _GUICtrlRichEdit_Create($Form1_1,"", 40, 120, 457, 145, BitOR($Es_READONLY, $WS_VSCROLL, $ES_MULTILINE, $ES_AUTOVSCROLL))
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Button_exit = GUICtrlCreateButton("退出", 424, 352, 75, 25)
$Button_setup = GUICtrlCreateButton("一键安装", 328, 312, 75, 25)
$Button_info = GUICtrlCreateButton("版本信息", 424, 312, 75, 25)
;设置下拉列表框
Global $pot = "" ;存储下拉列表内容
$Combo1 = GUICtrlCreateCombo("", 32, 312, 201, 21,BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
$var = IniReadSection(@ScriptDir&'\info\SoftConfig.ini',"安装套餐")
If @error Then
Else
For $i = 1 To $var[0][0]
$pot = $pot & "|" & $var[$i][1]
Next
GUICtrlSetData($Combo1, StringTrimLeft ($pot, 1), $var[1][1])
EndIf
GUISetState(@SW_SHOW)
MsgBox(0, "为啥啊","为啥啊")