Run a executable file (.exe) from memory.
OutputVar := BinRun(AddressOrPath , CommandLineParams, ScriptCommandLineParams, Hide, ExeToUse)Command Example: BinRun MyExe, "`nMsgBox A_Args.a", {a:"Hello World!"} Function Example: PID := BinRun(MyExe, "`nMsgBox A_Args.a", {a:"Hello World!"})
The name of the variable in which to store the process identifier (PID) of new process.
The address of a variable or a pointer to memory of the executable file (.exe).
This can be also a filepath or resource name, when both resource and filepath exist, resource takes precedence.
Command line parameters for the executable file (.exe).
This parameter can contain the text which will be loaded trough pipe. For example: "`nMsgBox A_AhkVersion"
Command line parameters for the script. This parameter can be an object as well. The object will be passed to new executable via ObjDump / ObjLoad.
True/1 to start process hidden otherwise 0/false/NULL.
Executable to use as base for new process.
By default the executable of current process is taken and %A_WinDir% \Microsoft.NET\Framework\v2.0.50727\vbc.exe to launch 32-bit exe from 64-bit process.
aFile:=FileRead(A_AhkPath,"RAW") BinRun(aFile,"`nMsgBox A_Args.a",{a:"Hello World!"}) ; same as above BinRun(A_AhkPath,"`nMsgBox A_Args.a",{a:"Hello World!"})