Does each script run on a different thread?

Ask for help, how to use AHK_H, etc.
asdsk9skdsdas
Posts: 36
Joined: 10 Mar 2019, 21:52

Does each script run on a different thread?

Post by asdsk9skdsdas » 09 Jan 2021, 00:39

If there are 2 scripts open, are they both on a different threads and can execute code simultaneously, or is multithreading only used when the AHKthread command is used?

HotKeyIt
Posts: 2364
Joined: 29 Sep 2013, 18:35
Contact:

Re: Does each script run on a different thread?

Post by HotKeyIt » 09 Jan 2021, 06:06

In v1 only when AhkThread is used (or other ways using AutoHotkey.dll), in v2 there is also NewThread which is similar to Ahkthread but without dll.

Post Reply

Return to “Ask for Help”