I want to create a subThread inside a MainThread , I tried code below but I get a error.
I use AHK_H v1 64bit 1.1.29
Code: Select all
Loop, 2
{
MainThreads[A_Index]:=AhkThread("
(
#NoEnv
SetBatchLines -1
ListLines Off
global disNoxPlayerX:=120
global disNoxPlayerY:=120
;Dosomething
SubThreads:=AhkThread(""
(
msgbox % A_Args[1]
)"",1)
)",A_index)
}