ProgressBar bei Downloadmanager funktioniert nicht.

  • Hallo Liebe Community
    Beim ausführen dieser Funktion wird die Datei Zwar runtergeladen allerdings verschwindet der Balken nach einer Zeit und erscheint dann wieder dann ist er wieder weg und der DL stoppt.

    [autoit]

    func XPx86()
    $1 = GUICtrlRead($Javaxp)
    $2 = GUICtrlRead($Deepxp)
    If GUICtrlRead($Javaxp) =1 Then
    $hDL= InetGet($DJavax86,@ScriptDir&"\java.exe",1,1)
    MsgBox(1,"Download gestartet","djkal")
    For $Info = Round (FileGetSize("java.exe")/1024/1024,2) To $Sizejava86
    $ipercent = Round(100 / $Sizejava86 * $info ,2)
    GUICtrlSetState($Prges1,$ipercent)
    sleep (1000)
    Next
    InetClose($hDL)

    [/autoit]

    Habe es auch schon mit einer Version von Do... Until versucht da ging der Lade balken allerdings fast sofort auf 100% der DL wurde allerdings fertig gestellt.

    [autoit]

    Do
    $Info = FileGetSize("java.exe")
    Sleep(1000)
    $iPercent = Round(100 / $Sizejava86 * $info * ,2)
    if $iPercent <> GUICtrlRead($Prges1) Then
    GUICtrlSetData($Prges1,$iPercent)
    EndIf
    Until $info=$Sizejava86

    [/autoit]


    Hoffe ihr Könnt mir helfen hier nochmal der das ganze Skript

    Spoiler anzeigen
    [autoit]

    #cs ----------------------------------------------------------------------------

    [/autoit] [autoit][/autoit] [autoit]

    AutoIt Version: 3.3.8.1
    Author: Keks alias Marco Haberstroh

    [/autoit] [autoit][/autoit] [autoit]

    Script Function:
    Läd ausgewählte Standartprogramme wie Java und Flashplayer automatisch runter und installiert diese.
    Downloading the choosed programes and installed them.
    #ce ----------------------------------------------------------------------------

    [/autoit] [autoit][/autoit] [autoit]

    ; Includes

    [/autoit] [autoit][/autoit] [autoit]

    #include <GuiConstantsEx.au3>
    #include <GuiButton.au3>
    #include <File.au3>
    #include <ButtonConstants.au3>
    #include <EditConstants.au3>
    #include <progressconstants.au3>
    #include <windowsconstants.au3>

    [/autoit] [autoit][/autoit] [autoit]

    ;Adressen/Adresses
    $DJavax86 = "http://javadl.sun.com/webapps/download/AutoDL?BundleId=79063"
    $DJavax64 = "1"
    $DFlash = "http://get.adobe.com/de/flashplayer/download/?installer=Flash_Player_11_for_Other_Browsers&os=XP&browser_type=Gecko&browser_dist=Firefox&d=McAfee_Security_Scan_Plus_FireFox_Browser&dualoffer=false"
    $DReader = "http://get.adobe.com/de/reader/download/?installer=Reader_11.0.03_German_for_Windows&os=XP&browser_type=Gecko&browser_dist=Firefox&d=McAfee_Security_Scan_Plus_FireFox_Browser&dualoffer=false"
    $DShock = "http://get.adobe.com/de/shockwave/thankyou/?installer=Shockwave_12.0.3.133_Windows_Slim_Other_Browsers"
    $DWinrarx86 = "http://www.winrar.de/dl/wrar420d.exe"
    $DWinrarx64 = "http://www.winrar.de/dl/winrar-x64-420d.exe"
    $DVLC = "http://get.videolan.org/vlc/2.0.7/win32/vlc-2.0.7-win32.exe"
    $DFirefoxx86 = "http://www.mozilla.org/de/firefox/new/#download-fx"
    $DFirefoxx64 = "2"
    $DDeep = "http://www.deepburner.com/download/DeepBurner1.exe"

    [/autoit] [autoit][/autoit] [autoit]

    ;Dateigrößen
    $Sizejava86 = Round (InetGetSize($DJavax86)/1024/1024,2)
    $sizejava64 = Round (InetGetSize($DJavax64)/1024/1024,2)
    $Sizeflash = Round (InetGetSize($DFlash)/1024/1024,2)
    $sizereader = Round (InetGetSize($DReader)/1024/1024,2)
    $sizeshock = Round (InetGetSize($DShock)/1024/1024,2)
    $sizerar86 = Round (InetGetSize($DWinrarx86)/1024/1024,2)
    $sizerar64 = Round (InetGetSize($DWinrarx64)/1024/1024,2)
    $sizevlc = Round (InetGetSize($DVLC)/1024/1024,2)
    $sizefirefox86 = Round (InetGetSize($DFirefoxx86)/1024/1024,2)
    $sizefirefox64 = Round (InetGetSize($DFirefoxx64)/1024/1024,2)
    $sizedeep = Round (InetGetSize($DDeep)/1024/1024,2)

    [/autoit] [autoit][/autoit] [autoit]

    ;GUI

    [/autoit] [autoit][/autoit] [autoit]

    GUICreate ("Keks Dwler", 350, 300) ;Erstellt GUI/Create a GUI

    [/autoit] [autoit][/autoit] [autoit]

    GUICtrlCreateTab (10,10,335,270)
    GUICtrlCreateTabItem ("Win XP x86")
    $Javaxp = GUICtrlCreateCheckbox ("Java",25,35)
    $Flashxp = GUICtrlCreateCheckbox ("Adobe Flashplayer", 25, 55)
    $Readerxp = GUICtrlCreateCheckbox ("Adobe Reader", 25, 75)
    $Shockxp = GUICtrlCreateCheckbox ("Shockwave Player", 25, 95)
    $Winrarxp = GUICtrlCreateCheckbox ("WinRar", 205, 35)
    $VLCxp = GUICtrlCreateCheckbox ("VLC Media Player", 205, 55)
    $Firefoxxp = GUICtrlCreateCheckbox ("Firefox", 205, 75)
    $Deepxp = GUICtrlCreateCheckbox ("Deepburner", 205, 95)
    $Prges1 = GUICtrlCreateProgress (25, 135, 300,20)
    $Beginn1 = GUICtrlCreateButton ("Beginn", 150, 200)

    [/autoit] [autoit][/autoit] [autoit]

    GUICtrlCreateTabItem ("Win XP x64")
    $Javaxp64 = GUICtrlCreateCheckbox ("Java",25,35)
    $Flashxp64 = GUICtrlCreateCheckbox ("Adobe Flashplayer", 25, 55)
    $Readerxp64 = GUICtrlCreateCheckbox ("Adobe Reader", 25, 75)
    $Shockxp64 = GUICtrlCreateCheckbox ("Shockwave Player", 25, 95)
    $Winrarxp64 = GUICtrlCreateCheckbox ("WinRar", 205, 35)
    $VLCxp64 = GUICtrlCreateCheckbox ("VLC Media Player", 205, 55)
    $Firefoxxp64 = GUICtrlCreateCheckbox ("Firefox", 205, 75)
    $Deepxp64 = GUICtrlCreateCheckbox ("Deepburner", 205, 95)
    $Prges2 = GUICtrlCreateProgress (25, 135, 300,20)

    [/autoit] [autoit][/autoit] [autoit]

    $Beginn2 = GUICtrlCreateButton ("Beginn", 150, 200)

    [/autoit] [autoit][/autoit] [autoit]

    GUICtrlCreateTabItem ("Win7 x86")
    $Java7 = GUICtrlCreateCheckbox ("Java",25,35)
    $Flash7 = GUICtrlCreateCheckbox ("Adobe Flashplayer", 25, 55)
    $Reader7 = GUICtrlCreateCheckbox ("Adobe Reader", 25, 75)
    $Shock7 = GUICtrlCreateCheckbox ("Shockwave Player", 25, 95)
    $Winrar7 = GUICtrlCreateCheckbox ("WinRar", 205, 35)
    $VLC7 = GUICtrlCreateCheckbox ("VLC Media Player", 205, 55)
    $Firefox7 = GUICtrlCreateCheckbox ("Firefox", 205, 75)
    $Deep7 = GUICtrlCreateCheckbox ("Deepburner", 205, 95)
    $Prges3 = GUICtrlCreateProgress (25, 135, 300,20)

    [/autoit] [autoit][/autoit] [autoit]

    $Beginn3 = GUICtrlCreateButton ("Beginn", 150, 200)

    [/autoit] [autoit][/autoit] [autoit]

    GUICtrlCreateTabItem ("Win7 x64")
    $Javax64 = GUICtrlCreateCheckbox ("Java",25,35)
    $Flashx64 = GUICtrlCreateCheckbox ("Adobe Flashplayer", 25, 55)
    $Readerx64 = GUICtrlCreateCheckbox ("Adobe Reader", 25, 75)
    $Shockx64 = GUICtrlCreateCheckbox ("Shockwave Player", 25, 95)
    $Winrarx64 = GUICtrlCreateCheckbox ("WinRar", 205, 35)
    $VLCx64 = GUICtrlCreateCheckbox ("VLC Media Player", 205, 55)
    $Firefoxx64 = GUICtrlCreateCheckbox ("Firefox", 205, 75)
    $Deepx64 = GUICtrlCreateCheckbox ("Deepburner", 205, 95)
    $Prges4 = GUICtrlCreateProgress (25, 135, 300,20)

    [/autoit] [autoit][/autoit] [autoit]

    $Beginn4 = GUICtrlCreateButton ("Beginn", 150, 200)

    [/autoit] [autoit][/autoit] [autoit]

    GUISetState(@SW_SHOW) ; Zum Anzeigen der GUI nötig/Show GUI
    ;Button Befehle
    While 1
    Switch GUIGetMsg ()
    case $GUI_EVENT_CLOSE
    Exit
    case $Beginn1
    xpCheck()
    Case $Beginn2
    xp64Check()
    Case $Beginn3
    Win7Check()
    Case $Beginn4
    Win764Check()
    EndSwitch
    WEnd

    [/autoit] [autoit][/autoit] [autoit]

    ;checkbefehl ob überhaupt was markiert wurde
    func XPCheck()
    if GUICtrlRead($Javaxp) =4 and GUICtrlRead($Flashxp) =4 And GUICtrlRead($Readerxp)=4 and GUICtrlRead($Shockxp)=4 and GUICtrlRead($Winrarxp)=4 and GUICtrlRead($VLCxp)=4 and GUICtrlRead($Firefoxxp)=4 and GUICtrlRead($Deepxp)=4 then
    MsgBox(1,"Error","Nichts ausgewählt!")
    Else
    XPx86()
    EndIf
    EndFunc

    [/autoit] [autoit][/autoit] [autoit]

    Func xp64Check()
    if GUICtrlRead($Javaxp64) =4 and GUICtrlRead($Flashxp64) =4 And GUICtrlRead($Readerxp64)=4 and GUICtrlRead($Shockxp64)=4 and GUICtrlRead($Winrarxp64)=4 and GUICtrlRead($VLCxp64)=4 and GUICtrlRead($Firefoxxp64)=4 and GUICtrlRead($Deepxp64)=4 then
    MsgBox(1,"Error","Nichts ausgewählt!")
    Else
    xpx64()
    EndIf
    EndFunc

    [/autoit] [autoit][/autoit] [autoit]

    Func Win7Check()
    if GUICtrlRead($Java7) =4 and GUICtrlRead($Flash7) =4 And GUICtrlRead($Reader7)=4 and GUICtrlRead($Shock7)=4 and GUICtrlRead($Winrar7)=4 and GUICtrlRead($VLC7)=4 and GUICtrlRead($Firefox7)=4 and GUICtrlRead($Deep7)=4 then
    MsgBox(1,"Error","Nichts ausgewählt!")
    Else
    win7()
    EndIf
    EndFunc

    [/autoit] [autoit][/autoit] [autoit]

    Func Win764Check()
    if GUICtrlRead($Javax64) =4 and GUICtrlRead($Flashx64) =4 And GUICtrlRead($Readerx64)=4 and GUICtrlRead($Shockx64)=4 and GUICtrlRead($Winrarx64)=4 and GUICtrlRead($VLCx64)=4 and GUICtrlRead($Firefoxx64)=4 and GUICtrlRead($Deepx64)=4 then
    MsgBox(1,"Error","Nichts ausgewählt!")
    Else
    Win764()
    EndIf
    EndFunc

    [/autoit] [autoit][/autoit] [autoit]

    ;Hauptfunktionen

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    func XPx86()
    $1 = GUICtrlRead($Javaxp)
    $2 = GUICtrlRead($Deepxp)
    If GUICtrlRead($Javaxp) =1 Then
    $hDL= InetGet($DJavax86,@ScriptDir&"\java.exe",1,1)
    MsgBox(1,"Download gestartet","djkal")
    For $Info = Round (FileGetSize("java.exe")/1024/1024,2) To $Sizejava86
    $ipercent = Round(100 / $Sizejava86 * $info ,2)
    GUICtrlSetState($Prges1,$ipercent)
    sleep (1000)
    Next
    InetClose($hDL)
    Else
    MsgBox(1,"fehler",$2)

    [/autoit] [autoit][/autoit] [autoit]

    EndIf
    EndFunc

    [/autoit] [autoit][/autoit] [autoit]

    Func xpx64()
    MsgBox(1,"hallo","hallo")
    EndFunc

    [/autoit] [autoit][/autoit] [autoit]

    func win7()
    msgbox(1,"hallo","hallo")
    EndFunc

    [/autoit] [autoit][/autoit] [autoit]

    func win764()
    msgbox(1,"hallo","hallo")
    EndFunc

    [/autoit]

    Einmal editiert, zuletzt von FlairSecret (23. September 2013 um 20:36)

  • Ungetestet aber so sollte es funktionieren.

    Spoiler anzeigen
    [autoit]

    #cs ----------------------------------------------------------------------------

    [/autoit] [autoit][/autoit] [autoit]

    AutoIt Version: 3.3.8.1
    Author: Keks alias Marco Haberstroh

    [/autoit] [autoit][/autoit] [autoit]

    Script Function:
    Läd ausgewählte Standartprogramme wie Java und Flashplayer automatisch runter und installiert diese.
    Downloading the choosed programes and installed them.
    #ce ----------------------------------------------------------------------------

    [/autoit] [autoit][/autoit] [autoit]

    ; Includes

    [/autoit] [autoit][/autoit] [autoit]

    #include <GuiConstantsEx.au3>
    #include <GuiButton.au3>
    #include <File.au3>
    #include <ButtonConstants.au3>
    #include <EditConstants.au3>
    #include <progressconstants.au3>
    #include <windowsconstants.au3>

    [/autoit] [autoit][/autoit] [autoit]

    ;Adressen/Adresses
    $DJavax86 = "http://javadl.sun.com/webapps/download/AutoDL?BundleId=79063"
    $DJavax64 = "1"
    $DFlash = "http://get.adobe.com/de/flashplayer/download/?installer=Flash_Player_11_for_Other_Browsers&os=XP&browser_type=Gecko&browser_dist=Firefox&d=McAfee_Security_Scan_Plus_FireFox_Browser&dualoffer=false"
    $DReader = "http://get.adobe.com/de/reader/download/?installer=Reader_11.0.03_German_for_Windows&os=XP&browser_type=Gecko&browser_dist=Firefox&d=McAfee_Security_Scan_Plus_FireFox_Browser&dualoffer=false"
    $DShock = "http://get.adobe.com/de/shockwave/thankyou/?installer=Shockwave_12.0.3.133_Windows_Slim_Other_Browsers"
    $DWinrarx86 = "http://www.winrar.de/dl/wrar420d.exe"
    $DWinrarx64 = "http://www.winrar.de/dl/winrar-x64-420d.exe"
    $DVLC = "http://get.videolan.org/vlc/2.0.7/win32/vlc-2.0.7-win32.exe"
    $DFirefoxx86 = "http://www.mozilla.org/de/firefox/new/#download-fx"
    $DFirefoxx64 = "2"
    $DDeep = "http://www.deepburner.com/download/DeepBurner1.exe"

    [/autoit] [autoit][/autoit] [autoit]

    ;Dateigrößen
    $Sizejava86 = Round (InetGetSize($DJavax86)/1024/1024)
    $sizejava64 = Round (InetGetSize($DJavax64)/1024/1024,2)
    $Sizeflash = Round (InetGetSize($DFlash)/1024/1024,2)
    $sizereader = Round (InetGetSize($DReader)/1024/1024,2)
    $sizeshock = Round (InetGetSize($DShock)/1024/1024,2)
    $sizerar86 = Round (InetGetSize($DWinrarx86)/1024/1024,2)
    $sizerar64 = Round (InetGetSize($DWinrarx64)/1024/1024,2)
    $sizevlc = Round (InetGetSize($DVLC)/1024/1024,2)
    $sizefirefox86 = Round (InetGetSize($DFirefoxx86)/1024/1024,2)
    $sizefirefox64 = Round (InetGetSize($DFirefoxx64)/1024/1024,2)
    $sizedeep = Round (InetGetSize($DDeep)/1024/1024,2)

    [/autoit] [autoit][/autoit] [autoit]

    ;GUI

    [/autoit] [autoit][/autoit] [autoit]

    GUICreate ("Keks Dwler", 350, 300) ;Erstellt GUI/Create a GUI

    [/autoit] [autoit][/autoit] [autoit]

    GUICtrlCreateTab (10,10,335,270)
    GUICtrlCreateTabItem ("Win XP x86")
    $Javaxp = GUICtrlCreateCheckbox ("Java",25,35)
    $Flashxp = GUICtrlCreateCheckbox ("Adobe Flashplayer", 25, 55)
    $Readerxp = GUICtrlCreateCheckbox ("Adobe Reader", 25, 75)
    $Shockxp = GUICtrlCreateCheckbox ("Shockwave Player", 25, 95)
    $Winrarxp = GUICtrlCreateCheckbox ("WinRar", 205, 35)
    $VLCxp = GUICtrlCreateCheckbox ("VLC Media Player", 205, 55)
    $Firefoxxp = GUICtrlCreateCheckbox ("Firefox", 205, 75)
    $Deepxp = GUICtrlCreateCheckbox ("Deepburner", 205, 95)
    $Prges1 = GUICtrlCreateProgress (25, 135, 300,20)
    $Beginn1 = GUICtrlCreateButton ("Beginn", 150, 200)

    [/autoit] [autoit][/autoit] [autoit]

    GUICtrlCreateTabItem ("Win XP x64")
    $Javaxp64 = GUICtrlCreateCheckbox ("Java",25,35)
    $Flashxp64 = GUICtrlCreateCheckbox ("Adobe Flashplayer", 25, 55)
    $Readerxp64 = GUICtrlCreateCheckbox ("Adobe Reader", 25, 75)
    $Shockxp64 = GUICtrlCreateCheckbox ("Shockwave Player", 25, 95)
    $Winrarxp64 = GUICtrlCreateCheckbox ("WinRar", 205, 35)
    $VLCxp64 = GUICtrlCreateCheckbox ("VLC Media Player", 205, 55)
    $Firefoxxp64 = GUICtrlCreateCheckbox ("Firefox", 205, 75)
    $Deepxp64 = GUICtrlCreateCheckbox ("Deepburner", 205, 95)
    $Prges2 = GUICtrlCreateProgress (25, 135, 300,20)

    [/autoit] [autoit][/autoit] [autoit]

    $Beginn2 = GUICtrlCreateButton ("Beginn", 150, 200)

    [/autoit] [autoit][/autoit] [autoit]

    GUICtrlCreateTabItem ("Win7 x86")
    $Java7 = GUICtrlCreateCheckbox ("Java",25,35)
    $Flash7 = GUICtrlCreateCheckbox ("Adobe Flashplayer", 25, 55)
    $Reader7 = GUICtrlCreateCheckbox ("Adobe Reader", 25, 75)
    $Shock7 = GUICtrlCreateCheckbox ("Shockwave Player", 25, 95)
    $Winrar7 = GUICtrlCreateCheckbox ("WinRar", 205, 35)
    $VLC7 = GUICtrlCreateCheckbox ("VLC Media Player", 205, 55)
    $Firefox7 = GUICtrlCreateCheckbox ("Firefox", 205, 75)
    $Deep7 = GUICtrlCreateCheckbox ("Deepburner", 205, 95)
    $Prges3 = GUICtrlCreateProgress (25, 135, 300,20)

    [/autoit] [autoit][/autoit] [autoit]

    $Beginn3 = GUICtrlCreateButton ("Beginn", 150, 200)

    [/autoit] [autoit][/autoit] [autoit]

    GUICtrlCreateTabItem ("Win7 x64")
    $Javax64 = GUICtrlCreateCheckbox ("Java",25,35)
    $Flashx64 = GUICtrlCreateCheckbox ("Adobe Flashplayer", 25, 55)
    $Readerx64 = GUICtrlCreateCheckbox ("Adobe Reader", 25, 75)
    $Shockx64 = GUICtrlCreateCheckbox ("Shockwave Player", 25, 95)
    $Winrarx64 = GUICtrlCreateCheckbox ("WinRar", 205, 35)
    $VLCx64 = GUICtrlCreateCheckbox ("VLC Media Player", 205, 55)
    $Firefoxx64 = GUICtrlCreateCheckbox ("Firefox", 205, 75)
    $Deepx64 = GUICtrlCreateCheckbox ("Deepburner", 205, 95)
    $Prges4 = GUICtrlCreateProgress (25, 135, 300,20)

    [/autoit] [autoit][/autoit] [autoit]

    $Beginn4 = GUICtrlCreateButton ("Beginn", 150, 200)

    [/autoit] [autoit][/autoit] [autoit]

    GUISetState(@SW_SHOW) ; Zum Anzeigen der GUI nötig/Show GUI
    ;Button Befehle
    While 1
    Switch GUIGetMsg ()
    case $GUI_EVENT_CLOSE
    Exit
    case $Beginn1
    xpCheck()
    Case $Beginn2
    xp64Check()
    Case $Beginn3
    Win7Check()
    Case $Beginn4
    Win764Check()
    EndSwitch
    WEnd

    [/autoit] [autoit][/autoit] [autoit]

    ;checkbefehl ob überhaupt was markiert wurde
    func XPCheck()
    if GUICtrlRead($Javaxp) =4 and GUICtrlRead($Flashxp) =4 And GUICtrlRead($Readerxp)=4 and GUICtrlRead($Shockxp)=4 and GUICtrlRead($Winrarxp)=4 and GUICtrlRead($VLCxp)=4 and GUICtrlRead($Firefoxxp)=4 and GUICtrlRead($Deepxp)=4 then
    MsgBox(1,"Error","Nichts ausgewählt!")
    Else
    XPx86()
    EndIf
    EndFunc

    [/autoit] [autoit][/autoit] [autoit]

    Func xp64Check()
    if GUICtrlRead($Javaxp64) =4 and GUICtrlRead($Flashxp64) =4 And GUICtrlRead($Readerxp64)=4 and GUICtrlRead($Shockxp64)=4 and GUICtrlRead($Winrarxp64)=4 and GUICtrlRead($VLCxp64)=4 and GUICtrlRead($Firefoxxp64)=4 and GUICtrlRead($Deepxp64)=4 then
    MsgBox(1,"Error","Nichts ausgewählt!")
    Else
    xpx64()
    EndIf
    EndFunc

    [/autoit] [autoit][/autoit] [autoit]

    Func Win7Check()
    if GUICtrlRead($Java7) =4 and GUICtrlRead($Flash7) =4 And GUICtrlRead($Reader7)=4 and GUICtrlRead($Shock7)=4 and GUICtrlRead($Winrar7)=4 and GUICtrlRead($VLC7)=4 and GUICtrlRead($Firefox7)=4 and GUICtrlRead($Deep7)=4 then
    MsgBox(1,"Error","Nichts ausgewählt!")
    Else
    win7()
    EndIf
    EndFunc

    [/autoit] [autoit][/autoit] [autoit]

    Func Win764Check()
    if GUICtrlRead($Javax64) =4 and GUICtrlRead($Flashx64) =4 And GUICtrlRead($Readerx64)=4 and GUICtrlRead($Shockx64)=4 and GUICtrlRead($Winrarx64)=4 and GUICtrlRead($VLCx64)=4 and GUICtrlRead($Firefoxx64)=4 and GUICtrlRead($Deepx64)=4 then
    MsgBox(1,"Error","Nichts ausgewählt!")
    Else
    Win764()
    EndIf
    EndFunc

    [/autoit] [autoit][/autoit] [autoit]

    ;Hauptfunktionen

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    func XPx86()
    $1 = GUICtrlRead($Javaxp)
    $2 = GUICtrlRead($Deepxp)
    If GUICtrlRead($Javaxp) =1 Then
    $hDL= InetGet($DJavax86,@ScriptDir&"\java.exe",1,1)
    MsgBox(1,"Download gestartet","djkal")
    For $Info = Round (FileGetSize("java.exe")/1024/1024) To $Sizejava86
    $ipercent = Round($Sizejava86/100 * $info)
    ConsoleWrite($ipercent & @LF)
    GUICtrlSetData($Prges1,$ipercent)
    sleep (1000)
    Next
    InetClose($hDL)
    Else
    MsgBox(1,"fehler",$2)

    [/autoit] [autoit][/autoit] [autoit]

    EndIf
    EndFunc

    [/autoit] [autoit][/autoit] [autoit]

    Func xpx64()
    MsgBox(1,"hallo","hallo")
    EndFunc

    [/autoit] [autoit][/autoit] [autoit]

    func win7()
    msgbox(1,"hallo","hallo")
    EndFunc

    [/autoit] [autoit][/autoit] [autoit]

    func win764()
    msgbox(1,"hallo","hallo")
    EndFunc

    [/autoit]
  • Also hat sich geklärt, Grund war das mein Internet zu langsam war und es ein WinHttpConnectIdle problem gab.

    Irgendeine Idee wie ich das Problem lösen könnte wenn ich wieder langsames Internet hab?

  • Hab mir TCP mal angeschaut dafür müsste ich ja mein ganzes Script umbasteln.
    Außerdem würde es dann Kompliziert werden mit der Progressbar xD
    Ich bin grad dabei es mit WinHttp zu Probieren.

    Denke mein Problem ist gelöst werde das mal aktualisieren.
    Danke dir :)