LibertyForAll

Can AutoIt support multi-threading?

4 posts in this topic

I want to write some useful plugins for AutoIt, but these libraries will require AutoIt to support multi-threading in order for them to function or be useful, which unfortunately, to my knowledge it does not support.

Are there any plans currently in place to bring multi-threading or object oriented support to the language? I know that we have AutoItObject which uses the IDispatch interface in COM, but there is currently no native object oriented support. Such an addition would be great and useful. Returning to the subject of multi-threading, I want to say in addition that some scripts might need to perform certain tasks while at the same time responding to GUI events, but in such a way that the event processing does not slow down the other tasks, and the other tasks do not slow down the event processing. Is there any way to deal with this?

Share this post


Link to post
Share on other sites



However, some of what you seek to achieve (event-driven GUI + background tasks) would be possible through multi-processing (not the same thing), with a shared memory space for exchanging data between various collaborating processes (look for inter-process communication solutions on this forum). AutoIt definitely supports multi-processing; you could even hook up several machines in a LAN to work together on a big task (see for example my pooled multi-processing tutorial in the Eigen4AutoIt environment).

Share this post


Link to post
Share on other sites

Things AutoIt will never do are described here: https://www.autoitscript.com/trac/autoit/wiki/AutoItNotOnToDoList


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now