#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <Process.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
Dim $dll
FileInstall("SkinCrafterDll.dll", @TempDir & "\SkinCrafterDll.dll", 1)
FileInstall("Skinastic.skf", @TempDir & "\Skinastic.skf", 1)
$Form1 = GUICreate("DNF选择器", 506, 109, 268, 137)
_SkinGUI(@TempDir & "\SkinCrafterDll.dll", @TempDir & "\Skinastic.skf", $Form1)
$Button1 = GUICtrlCreateButton("地下城与勇士国服界面版", 8, 26, 225, 57, $WS_GROUP)
$Button2 = GUICtrlCreateButton("地下城与勇士韩服界面版", 275, 26, 225, 57, $WS_GROUP)
$Label1 = GUICtrlCreateLabel("八佰龙网吧", 424, 88, 64, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Quit()
Case $Button1
RunWait("D:\网络游戏\地下城与勇士\start\DNFchina.exe"); 打开国服界面版
Case $Button2
RunWait("E:\Backup\dnf\ImagePacks2.exe");打开韩服界面版
EndSwitch
WEnd
Func _SkinGUI($SkincrafterDll, $SkincrafterSkin, $Handle)
$dll = DllOpen($SkincrafterDll)
DllCall($dll, "int:cdecl", "InitLicenKeys", "wstr", "1", "wstr", "", "wstr", "1@1.com", "wstr", "1")
DllCall($dll, "int:cdecl", "InitDecoration", "int", 1)
DllCall($dll, "int:cdecl", "LoadSkinFromFile", "wstr", $SkincrafterSkin)
DllCall($dll, "int:cdecl", "DecorateAs", "int", $Handle, "int", 25)
DllCall($dll, "int:cdecl", "ApplySkin")
EndFunc ;==>_SkinGUI
Func Quit()
GUISetState(@SW_HIDE)
DllCall($dll, "int:cdecl", "DeInitDecoration")
DllCall($dll, "int:cdecl", "RemoveSkin")
DllClose($dll)
FileDelete(@TempDir & "\SkinCrafterDll.dll")
FileDelete(@TempDir & "\Skinastic.skf")
;DirRemove(@AppDataDir&"\skin",1)
Exit
EndFunc ;==>Quit