Creates a script from main script that can be passed to AutoHotkey.dll, BinRun or DynaRun.
OutputVar := CreateScript(Script , Password)
Function Example: MyScript := CreateScript("a:=1`nStart:End`nfun{}")
The name of the variable in which to store the created script.
Label or function in main Script to include.
Syntax for including label is tartingLabelName:EndingLabelName
Syntax for including function is FunctionName{}
Password used to compile in Ahk2Exe.
You can have any code between included labels and functions. Script is also loaded from Resource if A_IsCompiled.
AutoHotkey.dll, BinRun, DynaRun
DynaRun(CreateScript("fun()`n`nfun{}"))
ExitApp
:
Return
fun(){
MsgBox calling %A_ThisFunc%
}