[v2] How to Multi-Thread Compiled Code?
Posted: 28 Aug 2020, 13:13
My current implementation of AHKThread utilizes the .ahk file, which will not work moving forward due to everything being compiled, as my understanding is that AhkThread() can not be utilized on .exe's.
Copying the code directly into the script does not appear to resolve the issue, due to #Include not compiling as expected if inside of parenthesis for the AHKThread() string with the methods I have attempted.
Attempted methods that I have tried include, but are not limited to:
Copying the code directly into the script does not appear to resolve the issue, due to #Include not compiling as expected if inside of parenthesis for the AHKThread() string with the methods I have attempted.
Code: Select all
; Current non-compiled code
#Include <testFolder\defaultObject> ; e.g. defaultObject := { "testValue": 66 }
CritObj := CriticalObject(defaultObject)
thread := AHKThread(A_ScriptDir "\Lib\testFolder\testTwo.ahk", &CritObj "", "threadName_2", true)
Attempted methods that I have tried include, but are not limited to:
Spoiler