async method ?
async method ?
I really wish to see async method in v2, or other possibility to create a worker thread
Re: async method ?
Have you tried SetTimer with Period = -1
Re: async method ?
hello,
do you have exemple code?
do you have exemple code?
Re: async method ?
Try this:
I hope that helps.
This is AHK v1 code!
AHK v2 does not yet offer multithreading, As far as I know.
If your question is not aimed at me, ignore please and sorry. AHK_H is the way to go, as mentioned before.
Code: Select all
#Persistent
SetTimer, WorkerThread, -1
WorkerThread:
ToolTip, WorkerThread at work
sleep, 2000
ToolTip, WorkerThread done
return
This is AHK v1 code!
AHK v2 does not yet offer multithreading, As far as I know.
If your question is not aimed at me, ignore please and sorry. AHK_H is the way to go, as mentioned before.
Re: async method ?
in my opinion async implementation must be the priority for AutoHotkey v2
Re: async method ?
Something along the lines of Promises as in JavaScript would be helpful. I’ve considered trying to implement it myself but haven’t taken the dive yet.
Re: async method ?
You can also execute code as a new process. See Run example #3 (ExecScript).
Re: async method ?
I think this is outside the scope of v2.0 or the development forum. Perhaps Ask for Help/v2 would be more appropriate to explore the current options, otherwise Wish List (although in that case there are sure to be existing topics that cover this).
Re: async method ?
Something similar is needed for despite there being work-arounds. Hopefully we not Promises though.
Re: async method ?
Care to explain your dissatisfaction with Promises?
Return to “AutoHotkey Development”
Who is online
Users browsing this forum: No registered users and 26 guests