函数参考
--------------------------------------------------------------------------------
FileInstall
包含并装入指定文件到编译后的脚本程序中.
FileInstall ( "源文件", "目标路径" [, 标志] )
参数
源文件 要装入到编译程序中的文件的路径.文件名必须是字符串,不能是任何变量. 它可以是一个相对路径(使用 .\ 或者 ..\ 等在路径中)
目标路径 结尾带有反斜线符号的目标路径,脚本程序运行时将把嵌入文件解压到此位置.此参数接受变量.
标志 [可选参数] 此标志参数用以决定是否覆盖已存在的文件:
0 = (默认)不覆盖已存在的文件
1 = 覆盖已存在的文件#Region ;**** 参数创建于 ACNWrapper_GUI ****
#PRE_UseX64=n
#PRE_Res_requestedExecutionLevel=None
#PRE_Res_File_Add=QQ影音.she
#PRE_Res_File_Add=Skin.dll
#EndRegion ;**** 参数创建于 ACNWrapper_GUI ****
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <GUIListBox.au3>
#include <WindowsConstants.au3>
Local $shefile = "QQ影音.she"
Local $dllfile = "Skin.dll"
FileInstall("QQ影音.she",@TempDir & "" & $shefile)
FileInstall("Skin.dll",@TempDir & "" & $dllfile)
Local $dll = DllOpen(@TempDir & "" & $dllfile)
DllCall($Dll, "int", "SkinH_AttachEx", "str", @TempDir & "" & $shefile, "str", "mhgd")
DllCall($Dll, "int", "SkinH_SetAero", "int", 1)
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 329, 300, 192, 124)
$Group1 = GUICtrlCreateGroup("Group1", 8, 8, 313, 281)
$Input1 = GUICtrlCreateInput("Input1", 32, 32, 273, 21)
$List1 = GUICtrlCreateList("", 32, 64, 273, 149)
$Button1 = GUICtrlCreateButton("Button1", 232, 232, 75, 25)
$Button2 = GUICtrlCreateButton("Button2", 144, 232, 75, 25)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
|