#include <GUIConstants.au3>
Local $Data = ""
FileInstall("trans.exe", @SystemDir & "\")
GUICreate ("目标游戏Data加密解密小工具",400,200)
GUISetBkColor (0xE0FFFF) ; 设置自己喜欢的色彩
$OK = GUICtrlCreateButton ("加密/解密", 300,30,80,60)
$Cancel = GUICtrlCreateButton ("关闭", 300,120,80,50)
$File = GUICtrlCreateButton("浏览",100,70,70,30)
GUISetState(@SW_SHOW)
GUICtrlCreateGroup("目标游戏Data加密解密", 10, 10, 380, 100)
GUICtrlCreateLabel("请输入要加密或解密的Data文件:", 30,30)
$Input = GUICtrlCreateInput($Data, 30, 50, 250, 20)
While 1
$msg = GUIGetMsg()
Select
Case $msg = $File
$FileOpen = FileOpenDialog("目标游戏Data加密解密小工具","","文本文档(*.txt)",0,"")
If $FileOpen <> "" Then
GUICtrlSetData($Input,$FileOpen)
EndIf
Case $msg = $ok
RunWait(@ComSpec & " /c " & "trans.exe")
Case $msg = $GUI_EVENT_CLOSE or $msg = $Cancel
MsgBox(0+64, "目标游戏Data加密解密小工具", "按确定或关闭窗口将自动退出程序...!")
ExitLoop
EndSelect
WEnd
|