AhkExported not working as expected Topic is solved

Ask for help, how to use AHK_H, etc.
kyuuuri
Posts: 340
Joined: 09 Jan 2016, 19:20

AhkExported not working as expected

Post by kyuuuri » 21 Jan 2020, 19:35

Hello I've been testing this code:

Code: Select all

newThread =
(%`
f1::
ahkExe := ahkExported()
msgbox % ahkExe.ahkgetvar("A_IsCompiled")
msgbox % ahkExe.ahkReady()
return
)

CritObj := CriticalObject()
#persistent
CritObj.Thread2:=AhkThread(newThread)
I double checked this time, there is no typos hahaah.
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.
HotKeyIt
Posts: 2364
Joined: 29 Sep 2013, 18:35
Contact:

Re: AhkExported not working as expected  Topic is solved

Post by HotKeyIt » 22 Jan 2020, 03:20

All is correct but A_IsCompiled is empty as expected and there is no ahkReady in AhkExported, you can't run threads without main exe being running :)
Post Reply

Return to “Ask for Help”