ich hab dir hier mal schnell ein Bsp. gemacht ![]()
EDIT: sorry war noch ein Fehler drinn. man muss natürlich den Prozentualen wert der progress setzten
Spoiler anzeigen
opt("GUIOnEventMode",1)
GUICreate("Downloader",200,200)
Global $Progress = GUICtrlCreateProgress(10,80,180,20)
GUICtrlCreateButton("Donwload",70,160,60,20)
GUICtrlSetOnEvent(-1,"Download")
GUISetOnEvent(-3,"_exit")
GUISetState()
Global $Don_Link = "http://autoit.de/index.php?page=Attachment&attachmentID=10169&h=cf81466099fd49b261097e157ddc43ee418ce64f"
While 1
Sleep(100)
WEnd
Func Download()
$hDon_file = InetGet($Don_Link,@ScriptDir &"/Formel 1 Display v1.1.rar",1,1)
Do
$lokal_size = FileGetSize(@ScriptDir & "/Formel 1 Display v1.1.rar")
GUICtrlSetData($Progress,100/$lokal_size*InetGetInfo($hDon_file,1))
Sleep(400)
Until $lokal_size >= InetGetInfo($hDon_file,1)
MsgBox(0,"Fertig","Fertig")
Exit
EndFunc
Func _exit()
Exit
EndFunc