Hi,
das Beispiel stammt aus der Hilfe.
Code
; Advanced example - downloading in the background
Local $hDownload = InetGet("http://www.autoitscript.com/autoit3/files/beta/update.dat", @TempDir & "\update.dat", 1, 1)
Do
Sleep(250)
Until InetGetInfo($hDownload, 2) ; Check if the download is complete.
Local $nBytes = InetGetInfo($hDownload, 0)
InetClose($hDownload) ; Close the handle to release resourcs.
Ich würde aber gerne die Do Until Schleife abrechen können, dazu habe ich ein Cancel Button
auf meiner GUI und bisher
Code
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Cancel
Exit
EndSwitch
WEnd
Ich weiß nicht wie ich die beiden Schleifen miteinander verheiraten soll?
Geht das?
Danke