Sign in to follow this  
Followers 0
FabFly

multithread

4 posts in this topic

Hi all,

Is there any way to manage multithread progamming in AutoIT script.

I explain my case :

I've developed a robot to monotor response time server. But, I would like to launch several robots in parallel.

Is it possible ?

if yes, how can I do this.

Thanks for your support.

Regards,

FabFly

Share this post


Link to post
Share on other sites



AutoIt by itself is monothread.

some kind of simulation can be done thru AdLib.

Perhaps you better launch as many script managing each of them one robot B)

Share this post


Link to post
Share on other sites

Hi,

I precise my problem.

With the IE.au3 UDF, if there is one IE page open and the script is beginning its work, the script stops.

Each script i've written uses IE.au3.

When I try to launch each script in parallel, each of them don't work. But if I launch them sequentially, evrything is fine.

Can someone help me ?

Thanks in advance.

FabFly

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Hi,

I precise my problem.

With the IE.au3 UDF, if there is one IE page open and the script is beginning its work, the script stops.

Each script i've written uses IE.au3.

When I try to launch each script in parallel, each of them don't work. But if I launch them sequentially, evrything is fine.

Can someone help me ?

Thanks in advance.

FabFly

a few ways you could go about this...

1) copy the contents of the ie.au3 (or atleast the parts you need) to your script that includes it. then omit the #include<ie.au3>.

2) compile your scripts. If the scripts are compiled, they should each be using an included copy of the ie.au3, so they should successfully run concurrently...

2.alt) compile your scripts and launch them using run commands from another script. you could even fileinstall() the compiled scripts into the loader, so that it installs the other scripts, then executes them from their new locations, that way there is one launcher that is spawning multiple single-threaded processes...

Edited by cameronsdad

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

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
Sign in to follow this  
Followers 0