Share this post

Link to post

Share on other sites

Valik 471

Valik 471

I don't see why multi-threading would be necessary for that task, however, to answer your question, no, multi-threading isn't available in AutoIt.

There are multiple ways to communicate to another script, such as writing to a file, changing a window title (Using a handle to the window you want to change the title of would be useful...), writing to the registry, et cetera.

Link to post

Share on other sites

Jon 861

Jon 861

I need to make a script that will continuely parse a file, that is constantly changing, and report things to another script.. for instance every time it sees a certain string $magicword.

this needs to go on behind the scenes while other scripts are running.

Is this possible with autoit?

thanks much.

+larks

You can always use an ADLIB function. You just tell it to execute every couple of milliseconds to do an operation on your file and then it can set a global variable to something if required.

In v2 ADLIB used to be purely for waiting for a rogue window to appear, but in v3 the adlib function can do anything you want - it just acts as another function that is run on a timer. However, while the adlib function is executing your main script is paused until the adlib finishes.