Je fais face à un petit problème qui m'agace. J'ai fait un petit script pour télécharger à intervalles régulières une image en http. Cela fonctionne nickel avec le code ci-dessous:
Code : Tout sélectionner
;Variables
$repetition = 60
$attente = 1 * 1000 * 10
For $i = 001 To $repetition
; Télécharge en arrière plan
Local $hDownload = InetGet("http://toto.jpg", "map-" & $i & ".jpg", 1, 1)
Do
Sleep(250)
Until InetGetInfo($hDownload, 2)
InetClose($hDownload)
Sleep($attente)
Next
MsgBox(0, "", "Fin du script")
Si quelqu'un peut m'aider je suis preneur!


