DLL [v0.6]

作者: SKAN 最近更新时间: 20090905


Humble 36L wrapper to create and use DLL resources in AutoHotkey Scripting Language.

Dll_CreateEmpty( F="empty.dll" )
Dll_PackFiles( Folder, DLL, Section="Files" )
Dll_Read( ByRef Var, Filename, Section, Key )

关于函数的参数和返回值, 请参阅其源码或 此文档.

备注

The documentation is part of authors first post about the library.

关于此函数(集)的更新细节和注意事项, 请参见 AutoHotkey 论坛: http://www.autohotkey.com/forum/viewtopic.php?t=62180

许可

不存在

示例

; #Include dll.ahk
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%

; First specify a folder, from which to include all files into the DLL.
folderToPack := A_ScriptDir . "\newFiles"

; Fill the folder with files.
FileCreateDir, %folderToPack%
Loop, ..\*.txt
{
	FileCopy, %A_LoopFileFullPath%, %folderToPack%, 1
}

; Create the DLL from that folder.
Dll_PackFiles( folderToPack . "\", "newFiles.DLL", "Text Files" )

; Get content of file into variable.
Dll_Read( Var, "newFiles.dll", "Text Files", "COPYING.txt" )
MsgBox %Var%