How to create a thread inside another thread?
Posted: 18 Aug 2018, 02:04
Hi,
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
How to create a thread inside another thread?
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)
}