Code: Select all
newThread =
(%`
f1::
ahkExe := ahkExported()
msgbox % ahkExe.ahkgetvar("A_IsCompiled")
msgbox % ahkExe.ahkReady()
return
)
CritObj := CriticalObject()
#persistent
CritObj.Thread2:=AhkThread(newThread)
I don't know if this example is wrong or ahkExported() doesn't work. I tried both compiled and not compiled.
Using ahk_h v1 x64 on w10.
Thanks in advance.