谁帮我解答一下呀。。急用
下面是我做的脚本源代码
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("软件安装分区先择工具", 498, 321, 236, 235)
$Button1 = GUICtrlCreateButton("更改软件安装路径为 C 盘", 208, 16, 267, 41, 0)
GUICtrlSetFont(-1, 14, 800, 0, "楷体_GB2312")
GUICtrlSetCursor (-1, 0)
$Button2 = GUICtrlCreateButton("更改软件安装路径为 D 盘", 208, 75, 267, 41, 0)
GUICtrlSetFont(-1, 14, 800, 0, "楷体_GB2312")
GUICtrlSetCursor (-1, 0)
$Button3 = GUICtrlCreateButton("更改软件安装路径为 E 盘", 208, 133, 267, 41, 0)
GUICtrlSetFont(-1, 14, 800, 0, "楷体_GB2312")
GUICtrlSetCursor (-1, 0)
$Button4 = GUICtrlCreateButton("更改软件安装路径为 F 盘", 208, 192, 267, 41, 0)
GUICtrlSetFont(-1, 14, 800, 0, "楷体_GB2312")
GUICtrlSetCursor (-1, 0)
$Pic1 = GUICtrlCreatePic("logo4.BMP", 0, 0, 185, 320, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Progress1 = GUICtrlCreateProgress(224, 272, 238, 1)
GUISetState(@SW_SHOW)
GUICtrlSetData("Button1",RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion","ProgramFilesDir","REG_SZ","C:\\Program Files"))
GUICtrlSetData("Button2",RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion","ProgramFilesDir","REG_SZ","D:\\Program Files"))
GUICtrlSetData("Button2",RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion","ProgramFilesDir","REG_SZ","E:\\Program Files"))
GUICtrlSetData("Button2",RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion","ProgramFilesDir","REG_SZ","F:\\Program Files"))
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Form1
Case $Form1
Case $Form1
Case $Form1
Case $Button1
Case $Button2
Case $Button3
Case $Button4
Case $Pic1
EndSwitch
WEnd
[ 本帖最后由 tzg_lxjk 于 2008-7-31 18:28 编辑 ] |