㈠ 我用Au3编程的fba文件安装界面,剩下的按纽命令不会掉用。求Au3的基本使用教程
#include<ButtonConstants.au3>
#include<ComboConstants.au3>
#include<GUIConstantsEx.au3>
#include<StaticConstants.au3>
#include<WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=i:\form1.kxf
$Form1 = GUICreate("自由人制作U盘安装程序", 401, 405, 407, 160)
$Pic1 = GUICtrlCreatePic("I:\ziyouren.jpg", 0, 0, 400, 50)
$Group1 = GUICtrlCreateGroup("请选择要安装的磁盘", 32, 64, 345, 81)
$Combo1 = GUICtrlCreateCombo("Combo1", 56, 96, 297, 25, BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL))
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group2 = GUICtrlCreateGroup("请选择要安装的方式 ", 32, 152, 345, 81)
$Combo2 = GUICtrlCreateCombo("Combo2", 56, 184, 297, 25, BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL))
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group3 = GUICtrlCreateGroup("请选择要安装的模式", 32, 240, 345, 81)
$Combo3 = GUICtrlCreateCombo("Combo3", 56, 272, 297, 25, BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL))
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Button1 = GUICtrlCreateButton("安装", 32, 344, 81, 41)
$Button2 = GUICtrlCreateButton("初始化U盘", 144, 344, 113, 41)
$Button3 = GUICtrlCreateButton("退出", 288, 344, 89, 41)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
MsgBox(0, 0, '您按了安装这个按钮')
Case $Button2
MsgBox(0, 0, '您按了初始化这个按钮')
Case $Button3
Exit
EndSwitch
WEnd
还有什么不明白的吗?
你AU3是怎么学的?先学界面?你会自动安装吗?自动安装是AU3最最基础,也算是比较实用,很多人都是从自动安装学了,在学基础的,先学界面并没有什么好处,不过你也可以把基础学了,这样比较系统,如果啥也不会,做界面根本没有意义。