Jump to content

Recommended Posts

Posted

Hi, I tried to make a progressbar with metro gui and that don't work at all can someone help me ? :)

Func emulator()
    If _Metro_CheckboxIsChecked($Checkbox1) Then
        
    ElseIf _Metro_CheckboxIsChecked($Checkbox2) Then
        $emulator_link = 'http://d1khghy4erd2oa.cloudfront.net/ndp-32wkjr6zn/Memu-Installer.exe'
    EndIf

    $Download = InetGet($emulator_link,@ScriptDir & "\temp\emulator.exe")
    $File_Size = InetGetInfo($emulator_link,1)
        $Current_Size = InetGetInfo($Download,0)
        _Metro_SetProgress($Progress1,$Current_Size / $File_Size * 100)
        MsgBox(0,'',$Download & " | " & $File_Size & " | " & $Current_Size / $File_Size * 100 )
    EndFunc

 

Posted

Oups wrong code 

Func emulator()
    If _Metro_CheckboxIsChecked($Checkbox1) Then
        
    ElseIf _Metro_CheckboxIsChecked($Checkbox2) Then
        $emulator_link = 'http://d1khghy4erd2oa.cloudfront.net/ndp-32wkjr6zn/Memu-Installer.exe'
    EndIf

    $Download = InetGet($emulator_link,@ScriptDir & "\temp\emulator.exe")
    $File_Size = InetGetInfo($emulator_link,1)
    While Not InetGetInfo($Download,2)
        $Current_Size = InetGetInfo($Download,0)
        _Metro_SetProgress($Progress1,$Current_Size / $File_Size * 100)
    WEnd
EndFunc

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...