SH8 Posted November 27, 2013 Share Posted November 27, 2013 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: _HTTPGet("http://localhost:18333/swdinterface?manufactor=",$Manufactor) _HTTPGet("http://localhost:18333/swdinterface?product=",$Product) _HTTPGet("http://localhost:18333/swdinterface?productversion=",$ProductVersion) _HTTPGet("http://localhost:18333/swdinterface?progress=",$Progress) _HTTPGet("http://localhost:18333/swdinterface?progressinfo=",$ProgressInfo) _HTTPGet("http://localhost:18333/swdinterface?info=",$Info) 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 ? Link to comment Share on other sites More sharing options...
karlkar Posted November 27, 2013 Share Posted November 27, 2013 Unfortunately AutoIt doesn;t support multi-threading, so it is impossible ;( Link to comment Share on other sites More sharing options...
SH8 Posted November 27, 2013 Author Share Posted November 27, 2013 (edited) :-( Maybee another idea: I launch _SoftwareInformerHTTPUpdate("Adobe","Reader","11.0",50,"Info","Info") _SoftwareInformerHTTPUpdate launch: _HTTPGet("http://localhost:18333/swdinterface?manufactor=",$Manufactor) _HTTPGet("http://localhost:18333/swdinterface?product=",$Product) _HTTPGet("http://localhost:18333/swdinterface?productversion=",$ProductVersion) _HTTPGet("http://localhost:18333/swdinterface?progress=",$Progress) _HTTPGet("http://localhost:18333/swdinterface?progressinfo=",$ProgressInfo) _HTTPGet("http://localhost:18333/swdinterface?info=",$Info) 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 November 27, 2013 by SH8 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now