㈠ 我用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最最基礎,也算是比較實用,很多人都是從自動安裝學了,在學基礎的,先學界面並沒有什麼好處,不過你也可以把基礎學了,這樣比較系統,如果啥也不會,做界面根本沒有意義。