launches a script within AutoHotkey.dll
hThread := DllCall("AutoHotkey.dll\ahkdll", "str", fileName, "str", argv, "str", args, "Cdecl Int")
| hThread | ahkdll() returns the handle to the thread in which the dll script runs. |
| filename | name of script to be compiled and added to the running script |
| argv | options, the only one supported is "/Debug" for Lexikos' Debugging Features |
| args | script parameters: "%1% %2% %3%", see ahk help file |
ahkdll := DllCall("LoadLibrary", "str", A_ScriptDir . "\AutoHotkey.dll")
sleep, 500
threadH := DllCall(A_ScriptDir . "\AutoHotkey.dll\ahkdll", "str", "dllclient.ahk", "str"
, "", "str", "parameter1 parameter2", "Cdecl Int")
; dllclient.ahk #Persistent msgbox % "script parameters =" . A_ScriptParams . "script options = " . A_ScriptOptions return