|
本帖最后由 tssheng 于 2011-2-20 14:38 编辑
帖子地址
http://www.autoitx.com/forum.php ... 4%B6%AF%D4%CB%D0%D0
源代码:
$Button1 = GUICtrlCreateButton("安装GHOSTXPSP3到第一分区", 80, 166, 177, 41)
$Button2 = GUICtrlCreateButton("备份本机硬件驱动到其他分区", 80, 238, 177, 41)
$Button3 = GUICtrlCreateButton("浏览光盘目录", 80, 310, 177, 41)
$Button4 = GUICtrlCreateButton("安装WINPE到本地磁盘", 365, 167, 177, 41)
$Button5 = GUICtrlCreateButton("备份个人资料到其他分区", 365, 239, 177, 41)
$Button6 = GUICtrlCreateButton("查看系统说明", 365, 313, 177, 41)
$var1 = IniRead("autorun.ini", "autorun", "安装系统", "errror")
$var2 = IniRead("autorun.ini", "autorun", "安装PE系统", "errror")
$var3 = IniRead("autorun.ini", "autorun", "备份本机驱动", "errror")
$var4 = IniRead("autorun.ini", "autorun", "备份个人资料", "errror")
$var5 = IniRead("autorun.ini", "autorun", "光盘说明", "1")
$var5 = IniRead("autorun.ini", "autorun", "浏览光盘目录", "errror")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $Form1, "int", 500, "long", 0x00090000);定义退出效果
Exit
Case $label2
ShellExecute("http://www.duote.com")
Case $button6
ShellExecute(@ScriptDir &"\"&$var5 )
Case $Button3
ShellExecute(@ScriptDir&"\")
Case $Button1
Run(@ScriptDir &"\"&$var1)
Case $Button2
Run(@ScriptDir &"\"&$var3)
Case $Button4
Run(@ScriptDir &"\"&$var2)
Case $Button5
Run(@ScriptDir &"\"&$var4)
配置文件里的内容是:
[autorun]
安装系统=
安装PE系统=
备份本机驱动=
备份个人资料=
光盘说明=
浏览光盘目录=\
请问
$var5 = IniRead("autorun.ini", "autorun", "光盘说明", "1")
$var5 = IniRead("autorun.ini", "autorun", "浏览光盘目录", "errror")
里的"1"和"errror"各是什么意思?
配置文件内只有 浏览光盘目录=\ 可以用,如何设置能达到其他几项能使用?
谢谢。。 |
|