How to share variables between main threads and others ?
Posted: 01 Jan 2024, 06:27
I am using thqby/AutoHotkey_H v2.1-alpha.8. I try to use dllcall funtion,but seems to not right.
[Mod edit: Added [code][/code] tags. Please use them yourself when posting code!]
Code: Select all
test1 := "test1"
newScripts :="
(
{
a::b
test2 := "test2"
}
)"
newT := NewThread(newScripts)
dllpath:=A_AhkDir "\AutoHotkey64.dll"
MsgBox DllCall(dllpath "\ahkGetVar","Str",test2,"Uint",newT)