-
Notifications
You must be signed in to change notification settings - Fork 72
/
AhkDllFunctions.ahk
37 lines (35 loc) · 2.05 KB
/
AhkDllFunctions.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
AhkDllFunctions(MemoryModule){
If !MemoryModule
return "
(
#DllImport, ahkFunction,`%A_DllPath`%\ahkFunction,Str,,PTR,0,PTR,0,PTR,0,PTR,0,PTR,0,PTR,0,PTR,0,PTR,0,PTR,0,PTR,0,Cdecl Str
#DllImport, ahkPostFunction,`%A_DllPath`%\ahkPostFunction,Str,,PTR,0,PTR,0,PTR,0,PTR,0,PTR,0,PTR,0,PTR,0,PTR,0,PTR,0,PTR,0,Cdecl Str
#DllImport, ahkExec,`%A_DllPath`%\ahkExec,Str,,Cdecl
#DllImport, addScript,`%A_DllPath`%\addScript,Str,,UInt,0,Cdecl PTR
#DllImport, addFile,`%A_DllPath`%\addFile,Str,,UInt,0,Cdecl PTR
#DllImport, ahkExecuteLine,`%A_DllPath`%\ahkExecuteLine,PTR,0,UInt,0,UInt,0,Cdecl PTR
#DllImport, ahkFindLabel,`%A_DllPath`%\ahkFindLabel,Str,,Cdecl PTR
#DllImport, ahkFindFunc,`%A_DllPath`%\ahkFindFunc,Str,,Cdecl PTR
#DllImport, ahkassign,`%A_DllPath`%\ahkAssign,Str,,Str,,Cdecl
#DllImport, ahkgetvar,`%A_DllPath`%\ahkgetvar,Str,,UInt,0,Cdecl STR
#DllImport, ahkLabel,`%A_DllPath`%\ahkLabel,Str,,UInt,0,Cdecl PTR
#DllImport, ahkPause,`%A_DllPath`%\ahkPause,Str,,Cdecl
)"
LoopParse,ahkFunction.ahkPostFunction.ahkExec.addScript.addFile.ahkExecuteLine.ahkFindLabel.ahkFindFunc.ahkassign.ahkgetvar.ahkLabel.ahkPause,.
%A_LoopField%:=MemoryGetProcAddress(memoryModule,A_LoopField)
return "
(
#DllImport, ahkFunction,%ahkFunction%,Str,,PTR,0,PTR,0,PTR,0,PTR,0,PTR,0,PTR,0,PTR,0,PTR,0,PTR,0,PTR,0,Cdecl Str
#DllImport, ahkPostFunction,%ahkPostFunction%,Str,,PTR,0,PTR,0,PTR,0,PTR,0,PTR,0,PTR,0,PTR,0,PTR,0,PTR,0,PTR,0,Cdecl Str
#DllImport, ahkExec,%ahkExec%,Str,,Cdecl
#DllImport, addScript,%addScript%,Str,,UInt,0,Cdecl PTR
#DllImport, addFile,%addFile%,Str,,UInt,0,Cdecl PTR
#DllImport, ahkExecuteLine,%ahkExecuteLine%,PTR,0,UInt,0,UInt,0,Cdecl PTR
#DllImport, ahkFindLabel,%ahkFindLabel%,Str,,Cdecl PTR
#DllImport, ahkFindFunc,%ahkFindFunc%,Str,,Cdecl PTR
#DllImport, ahkassign,%ahkAssign%,Str,,Str,,Cdecl
#DllImport, ahkgetvar,%ahkgetvar%,Str,,UInt,0,Cdecl STR
#DllImport, ahkLabel,%ahkLabel%,Str,,UInt,0,Cdecl PTR
#DllImport, ahkPause,%ahkPause%,Str,,Cdecl
)"
}