Sign in to follow this  
Followers 0
SH8

Need simultaneously run of function

3 posts in this topic

Dear all,

I have a HTTP function.
The HTTP function is  a little bit complex with cross checking and the webserver need some time for each process.

MyFunction:

Func _HTTPGet($URL,$Value)

       ;IT TAKES SOME TIME :-)

       ;ErrorHandling etc

EndFunc

Now I launch this Function sometimes:

 
This launch should not be like a batch.
Maybee my http-Server is offline I have to wait for exception each launch
 
So will launch them simultaneously.
How can I do it ?

Share this post


Link to post
Share on other sites



Unfortunately AutoIt doesn;t support multi-threading, so it is impossible ;(

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

:-( Maybee another idea:

I launch
_SoftwareInformerHTTPUpdate("Adobe","Reader","11.0",50,"Info","Info")

_SoftwareInformerHTTPUpdate launch:

 
Maybee there is an other chance for my problem:
_SoftwareInformerHTTPUpdate is launching _HTTPGet
If _HTTPGet returns an error _SoftwareInformerHTTPUpdate should not make the next following _HTTPGet
 
Not clean, but a workarround to solve timeouts because of unavaible webservers.
So I need to limit time for the _SoftwareInformerHTTPUpdate like WinWait, but not with an WindowsApplication instead my function
Edited by SH8

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