1)How to terminate a threads from another thread?
2)How to Accessing a variable of a thread from another thread ?
I read document at here https://hotkeyit.github.io/v2/docs/comm ... getvar.htm and here https://hotkeyit.github.io/v2/docs/comm ... minate.htm but It work only in maincode, not work in a thread
I use AHK_H v1 64bit
Code: Select all
global threads:=[]
Loop 8
threads[A_Index]:=AhkThread("
(
**Do something**
if(Dosomething = "true"){
threads[2].ahkterminate[]
}
)")