Aide:InetGetInfo.txt

De Wiki AutoIt Français
Aller à : navigation, rechercher

Document original V3.3.6.1 :

###Function###
InetGetInfo

###Description###
Returns detailed data for a handle returned from InetGet().

###Syntax###
InetGetInfo( [ handle [, index ]] )


###Parameters###
@@ParamTable@@
handle
	[optional] A handle return from InetGet().
index
	[optional] The index for the data to retrieve.  If this value is -1 an array containing all of the below data will be returned.
		0 - Bytes read so far (this is updated while the download progresses).
		1 - The size of the download (this may not always be present).
		2 - Set to True if the download is complete, False if the download is still ongoing.
		3 - True if the download was successful.  If this is False then the next data member will be non-zero.
		4 - The error value for the download.  The value itself is arbitrary.  Testing that the value is non-zero is sufficient for determining if an error occurred.
		5 - The extended value for the download.  The value is arbitrary and is primarily only useful to the AutoIt developers.
@@End@@


###ReturnValue###
Success - The request data.
Failure - An empty string and @error is set to non-zero.


###Remarks###
If called with no arguments then the total number of active downloads will be returned.

This function can be called in a loop to query the number of bytes download or to pause until a download is complete.


###Related###
InetGet


###Example###
@@IncludeExample@@


Document traduit V3.3.6.1 :

###Function###
InetGetInfo

###Description###
Retourne les données détaillées pour un handle retourné par InetGet().


###Syntax###
InetGetInfo( [ handle [, index ]] )


###Parameters###
@@ParamTable@@
handle
	[optionnel] Un handle retourné par InetGet().
index
	[optionnel] L'index pour les données à récupérer.  Si cette valeur est -1, un tableau contenant toutes les données ci-dessous sera retourné.
		0 - Octets lus jusqu'à présent (ceci est mis à jour durant la progression du téléchargement).
		1 - La taille du téléchargement (ceci n'est pas toujours présent).
		2 - Égal à True si le téléchargement est complété, False si le téléchargement est en cours.
		3 - True si le téléchargement est un succès. Si celui-ci est à False alors le membre de données suivante sera non-nulle.
		4 - La valeur d'erreur pour le téléchargement. La valeur est arbitraire.  Tester que la valeur est non-nulle est suffisant pour déterminer si une erreur s'est produite.
		5 - La valeur étendue pour le téléchargement. La valeur est arbitraire et est principalement utile aux développeurs d'AutoIt.
@@End@@


###ReturnValue###
Succès:	Les données demandées.
Échec:	Une chaîne vide et met @error <> 0.


###Remarks###
Si la fonction est appelée sans aucun argument alors le nombre total de téléchargements actifs sera retourné.

Cette fonction peut-être appelée dans une boucle pour récupérer le nombre d'octets téléchargés ou pour faire une pause jusqu'à ce que le téléchargement soit complété.


###Related###
<a href="InetGet.htm">InetGet</a>


###Example###
@@IncludeExample@@


Traducteur : Alex74

Contributeurs (pour les modifications avant le Wiki) : Tlem