HotKeyIt / ahkdll

AutoHotkey_H
Mozilla Public License 2.0
266 stars 62 forks source link

Multi-Threading Functions Missing #28

Open AtmaX opened 4 years ago

AtmaX commented 4 years ago

I just started using AutoHotkey_H; I wanted to try it to use its multi-threading functionality. However, whenever I try to run a script that calls one of the multi-threading functions, I get a load-time error message saying that the function doesn't exist. I'm using the .exe version of AutoHotkey_H. Is this a bug, or did I invariably mess something up?

HotKeyIt commented 3 years ago

Please provide example code.

xmaxrayx commented 4 months ago

@HotKeyIt Hi thanks for AHK-H properly he ment this

MyThread:=NewThread("Msgbox variable:=`"Thread`"")
While !Mythread.ahkReady()
  Sleep 100
MsgBox MyThread.ahkgetvar.variable

image

image

another example this msgbox good at first but throw error after 0.5 second

image

even if I disabled the warning it's still show up

#Warn All, Off

NewThread MsgBox("Message from thread")