Hallo,
weiß jemand von euch, wie ich die Downloadgeschwindigkeit und die Restzeit eines Downloads anzeigen lassen kann?
Hier mal mein Script dazu:
Spoiler anzeigen
#cs ----------------------------------------------------------------------------
[/autoit] [autoit][/autoit] [autoit]AutoIt Version: 3.3.2.0
Author: myName
Script Function:
Template AutoIt script.
#ce ----------------------------------------------------------------------------
[/autoit] [autoit][/autoit] [autoit]; Script Start - Add your code below here
[/autoit] [autoit][/autoit] [autoit]#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$DownloadLink = "http://download.mozilla.org/?product=firefox-3.5.6&os=win&lang=de"
[/autoit] [autoit][/autoit] [autoit]$Form1 = GUICreate("Download-Details", 354, 106, 20, 20)
$Label1 = GUICtrlCreateLabel("Verbleibende Zeit:", 8, 8, 90, 17)
$Label2 = GUICtrlCreateLabel("Übertragungsrate:", 8, 32, 89, 17)
$Label3 = GUICtrlCreateLabel("Fortschritt:", 8, 56, 53, 17)
$FortschrittsProgressY = GUICtrlCreateProgress(8, 80, 334, 17)
GUISetState(@SW_SHOW)
$DownloadHandle = InetGet($DownloadLink, @ScriptDir & "\Firefox.exe", 1, 1)
[/autoit] [autoit][/autoit] [autoit]Do
$DownloadInfo = InetGetInfo($DownloadHandle)
$Prozent = Int($DownloadInfo[0] * 100 / $DownloadInfo[1])
GUICtrlSetData($FortschrittsProgress, $Prozent)
Sleep(100)
Until $DownloadInfo[2] = True
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Vielen Dank für eure Hilfe ![]()