#NoTrayIcon
#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=c:\users\desktop\au3\form1.kxf
Global $txt="AutoIt3Wrapper",$W,$H,$l,$B
Global $zj=20,$dj=20,$kd=50,$gd=25
$D_Gui = GUICreate($txt, 560, 840, 100, 83)
$Label1 = GUICtrlCreateLabel("当前文件", $zj, $dj+8, $kd, $gd)
$Input1 = GUICtrlCreateInput("", $zj+60, $dj, $kd*8, $gd)
$Button1 = GUICtrlCreateButton("...",$zj+60+$kd*8+$zj, $dj, $kd/2, $gd)
;$Pic1 = GUICtrlCreatePic("", $zj+60+$kd*8+$zj+20, 8, 68, 52)
$Group1 = GUICtrlCreateGroup("", $zj, $dj*3, $kd*10.5, $gd*4)
Global $zjhx=28,$djhx=80,$kdhx3=70,$kdhx2=400,$anqiuzj=510,$anqiugd=21,$anqiukd=25
$Checkbox1 = GUICtrlCreateCheckbox("图标文件", $zjhx, $djhx, $kdhx3, 17)
$Checkbox2 = GUICtrlCreateCheckbox("输出(X86)", $zjhx, $djhx+25, $kdhx3, 17)
$Checkbox3 = GUICtrlCreateCheckbox("输出(X64)", $zjhx, $djhx+50, $kdhx3, 17)
$Input2 = GUICtrlCreateInput("", $zjhx+80, $djhx, $kdhx2, 21)
$Input3 = GUICtrlCreateInput("", $zjhx+80, $djhx+25, $kdhx2, 21)
$Input4 = GUICtrlCreateInput("", $zjhx+80, $djhx+50, $kdhx2, 21)
$Button2 = GUICtrlCreateButton("...", $anqiuzj, $djhx, $anqiukd, $anqiugd)
$Button3 = GUICtrlCreateButton("...", $anqiuzj, $djhx+25, $anqiukd, $anqiugd)
$Button4 = GUICtrlCreateButton("...", $anqiuzj, $djhx+50, $anqiukd, $anqiugd)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group2 = GUICtrlCreateGroup("", $zj, $djhx+80, $kd*10.5, $gd*3.5)
$Checkbox4 = GUICtrlCreateCheckbox("使用UPX压缩", $zjhx, $djhx+95, 97, 17)
$Checkbox5 = GUICtrlCreateCheckbox("包含必要的Constans*.au3", $zjhx, $djhx+120, 200, 17)
$Checkbox6 = GUICtrlCreateCheckbox("创建GUI控制台程序", $zjhx, $djhx+145, 150, 17)
$Button5 = GUICtrlCreateButton("编译(C)", 260, 208, 75, 25)
$Button6 = GUICtrlCreateButton("仅保存(S)", 360, 208, 75, 25)
$Exit_Button = GUICtrlCreateButton("退出(X)", 460, 208, 75, 25)
GUICtrlCreateGroup("", -99, -99, 1, 1)
Global $Lb=270,$jj=25,$txtzj=90,$kdhx1=60,$inputkd=380
$Group3 = GUICtrlCreateGroup("", $zj, $djhx+170, $kd*10.5, 270)
$Label2 = GUICtrlCreateLabel("文件版本", $zjhx, $Lb, $kdhx1, 17)
$Label3 = GUICtrlCreateLabel("程序语言", $zjhx, $Lb+$jj, $kdhx1, 17)
$Input5 = GUICtrlCreateInput("1.1.1.1", $txtzj, $Lb-5, 121, 21)
$Combo1 = GUICtrlCreateCombo("", 220, $Lb-5, 81, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlSetData($Combo1,"不递增|自动递增|询问递增","不递增")
$Label4 = GUICtrlCreateLabel("简防傻反", 320, $Lb, $kdhx1, 17)
$Combo2 = GUICtrlCreateCombo("Combo2", 384, $Lb-5, 145, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
$Combo3 = GUICtrlCreateCombo("", $txtzj, $Lb+20, 210, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlSetData($Combo3,"English|中文|繁体","中文")
$Label5 = GUICtrlCreateLabel("执行等级", 320, $Lb+20, $kdhx1, 17)
$Combo4 = GUICtrlCreateCombo("", 384, $Lb+20, 145, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlSetData($Combo4,"Lowest|Low|Normal|High|Highest","Normal")
$Label6 = GUICtrlCreateLabel("版权信息", $zjhx, $Lb+$jj*2, $kdhx1, 17)
$Input_Copyright = GUICtrlCreateInput("", $txtzj, $Lb+$jj*2-5, 300, 21)
$Label7 = GUICtrlCreateLabel("备注信息", $zjhx, $Lb+$jj*3, $kdhx1, 17)
$Input7 = GUICtrlCreateInput("Input7", $txtzj, $Lb+$jj*2+20, $inputkd, 21)
$Label8 = GUICtrlCreateLabel("描述信息", $zjhx, $Lb+$jj*4, $kdhx1, 17)
$Input8 = GUICtrlCreateInput("Input8", $txtzj, $Lb+$jj*2+45, $inputkd, 21)
$Label9 = GUICtrlCreateLabel("附加信息", $zjhx, $Lb+$jj*5, $kdhx1, 17)
$Input9 = GUICtrlCreateInput("Input9", $txtzj, $Lb+$jj*2+70, $inputkd, 21)
$Button8 = GUICtrlCreateButton("编辑", 472, $Lb+$jj*2+68, 60, 25)
$Label10 = GUICtrlCreateLabel("图标资源", $zjhx, $Lb+$jj*6, $kdhx1, 17)
$Label11 = GUICtrlCreateLabel("文件资源", $zjhx, $Lb+$jj*7, $kdhx1, 17)
$Label12 = GUICtrlCreateLabel("编前运行", $zjhx, $Lb+$jj*8, $kdhx1, 17)
$Label13 = GUICtrlCreateLabel("编后运行", $zjhx, $Lb+$jj*9, $kdhx1, 17)
$Input10 = GUICtrlCreateInput("Input10", $txtzj, $Lb+$jj*2+95, $inputkd, 21)
$Input11 = GUICtrlCreateInput("Input11", $txtzj, $Lb+$jj*2+120, $inputkd, 21)
$Input12 = GUICtrlCreateInput("Input12", $txtzj, $Lb+$jj*2+145, $inputkd, 21)
$Input13 = GUICtrlCreateInput("Input13", $txtzj, $Lb+$jj*2+170, $inputkd, 21)
$Button9 = GUICtrlCreateButton("编辑", 472, $Lb+$jj*2+68+25, 60, 25)
$Button10 = GUICtrlCreateButton("编辑", 472, $Lb+$jj*2+68+50, 60, 25)
$Button11 = GUICtrlCreateButton("编辑", 472, $Lb+$jj*2+68+75, 60, 25)
$Button12 = GUICtrlCreateButton("编辑", 472, $Lb+$jj*2+68+100, 60, 25)
$Input_Copyright_button = GUICtrlCreateButton("© ", 400, $Lb+$jj*2-5, 20, 20)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group4 = GUICtrlCreateGroup("", $zj, $djhx+440, $kd*10.5, 146)
$Checkbox7 = GUICtrlCreateCheckbox("语法检查", $zjhx, $djhx+460, 97, 17)
$Checkbox8 = GUICtrlCreateCheckbox("代码整理", $zjhx, $djhx+460+25, 97, 17)
$w_Func = GUICtrlCreateCheckbox("清除未用函数", 120,$djhx+460+25, 90, 17)
GUICtrlSetState($w_Func,$GUI_DISABLE)
$Checkbox9 = GUICtrlCreateCheckbox("代码精简", $zjhx, $djhx+460+50, 97, 17)
$w_Func = GUICtrlCreateCheckbox("清除未用函数", 120,$djhx+460+50, 90, 17)
GUICtrlSetState($w_Func,$GUI_DISABLE)
$bl = GUICtrlCreateCheckbox("清除未用变量", 220,$djhx+460+50, 90, 17)
GUICtrlSetState($bl,$GUI_DISABLE)
$Re_Func = GUICtrlCreateCheckbox("整合删除注释", 320,$djhx+460+50, 90, 17)
GUICtrlSetState($Re_Func,$GUI_DISABLE)
$ZH = GUICtrlCreateCheckbox("保留注释", 420,$djhx+460+50, 90, 17)
GUICtrlSetState($ZH,$GUI_DISABLE)
$Checkbox10 = GUICtrlCreateCheckbox("代码迷惑", $zjhx, $djhx+460+75, 80, 17)
$Re_Func = GUICtrlCreateCheckbox("重命名函数", 120,$djhx+460+75, 80, 17)
GUICtrlSetState($Re_Func,$GUI_DISABLE)
$ZH = GUICtrlCreateCheckbox("中文支持", 220,$djhx+460+75, 80, 17)
GUICtrlSetState($ZH,$GUI_DISABLE)
$Re_Func = GUICtrlCreateCheckbox("移除未用函数", 320,$djhx+460+75, 90, 17)
GUICtrlSetState($Re_Func,$GUI_DISABLE)
$ZH = GUICtrlCreateCheckbox("替换常量变量", 420,$djhx+460+75, 90, 17)
GUICtrlSetState($ZH,$GUI_DISABLE)
$Re_Func = GUICtrlCreateCheckbox("删除未用变量", 120,$djhx+460+100, 80, 17)
GUICtrlSetState($Re_Func,$GUI_DISABLE)
$ZH = GUICtrlCreateCheckbox("重命名函数", 220,$djhx+460+100, 80, 17)
GUICtrlSetState($ZH,$GUI_DISABLE)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group5 = GUICtrlCreateGroup("", $zj, $djhx+590, $kd*10.5, 155)
$Checkbox11 = GUICtrlCreateCheckbox("用WINrar自动打包", $zjhx, $djhx+610, 197, 17)
$Label14 = GUICtrlCreateLabel("+ 改变打包格式", 100, $djhx+610+25, 142, 17)
$Combo5 = GUICtrlCreateCombo("", 200, $djhx+610+20, 145, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlSetData($Combo5,"7z|rar|zip","rar")
GUICtrlSetState($Combo5,$GUI_DISABLE)
$Checkbox12 = GUICtrlCreateCheckbox("压缩包密码", 60, $djhx+610+47, 117, 17)
GUICtrlSetState($Checkbox12,$GUI_DISABLE)
$Input14 = GUICtrlCreateInput("Input14", 152, $djhx+610+45, 121, 21)
GUICtrlSetState($Input14,$GUI_DISABLE)
$Checkbox13 = GUICtrlCreateCheckbox("添加注释", 60, $djhx+610+70, 97, 17)
GUICtrlSetState($Checkbox13,$GUI_DISABLE)
$Input15 = GUICtrlCreateInput("Input15", 152, $djhx+610+70, 121, 21)
GUICtrlSetState($Input15,$GUI_DISABLE)
$Button13 = GUICtrlCreateButton("...", 288, $djhx+610+70, 75, 25)
$Label15 = GUICtrlCreateLabel("Label15", 112, $djhx+610+95, 42, 17)
$Input16 = GUICtrlCreateInput("$Input16", 184, $djhx+610+95, 185, 21)
GUICtrlSetState($Input16,$GUI_DISABLE)
$Checkbox14 = GUICtrlCreateCheckbox("Checkbox14", 40, 912, 97, 17)
GUICtrlSetState($Checkbox14,$GUI_DISABLE)
$Checkbox15 = GUICtrlCreateCheckbox("压缩包密码", 60, $djhx+610+115, 117, 17)
GUICtrlSetState($Checkbox15,$GUI_DISABLE)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Input_Copyright_button
C()
Case $Exit_Button
Exit
EndSwitch
WEnd
Func C()
If StringInStr(GUICtrlRead($Input_Copyright), '©') = 0 Then GUICtrlSetData($Input_Copyright, 'Copyright © ' & GUICtrlRead($Input_Copyright))
EndFunc ;==>C