Ciao a tutti il forum, è il mio primo messaggio qui anche se vi seguo ormai da tempo. Ho un problema, vorrei fare un programma per scaricare file in autoit, fin qui nessun problema, ma vorrei far in modo di poter mettere in pausa il download e riprenderlo. Il server da cui scarico i file supporta il resume dei download, ma vorrei delucidazioni su come poter stoppare il download e riprenderlo.

Il download dei file avviane con la funzione InetGet

codice:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Prova", 266, 75, 291, 211)
$Label1 = GUICtrlCreateLabel("Scarica file", 8, 8, 56, 17)
$Download = GUICtrlCreateButton("Download", 8, 40, 75, 25, $WS_GROUP)
$Pausa = GUICtrlCreateButton("Pausa", 96, 40, 75, 25, $WS_GROUP)
$Riprendi = GUICtrlCreateButton("Riprendi", 184, 40, 75, 25, $WS_GROUP)
GUISetState(@SW_SHOW)

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit
                Case $Download
                        InetGet("http://www.xxxxxxxx.xxxxx", "C:\prova.rar")
                Case $Pausa
                        ;Sapreste come fare o che funzione usare?
                Case $Riprendi
                        ;Sapreste come fare o che funzione usare?
	EndSwitch
WEnd
Quindi vorrei sapere come mettere in pausa un download e poterlo riprendere, ringrazio anticipatamente.

Saluti,
Shoot