sevgili arkadaşlar FileInstall komutu çalışırken progressbar ın
hareketini nasıl sağlayabiliriz
yani fileınstall komutu işini yaparken yüklediği dosyanın yüzdesini alark progres çubuğunda gösterecek aşağıda ben bi örnek yaptım ama progres birden bire doluyor
{code}
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
Opt('MustDeclareVars', 1)
Example()
Func Example()
Local $progressbar1,$button, $s, $msg, $m
GUICreate("My GUI Progressbar", 220, 100, 100, 200)
$progressbar1 = GUICtrlCreateProgress(10, 10, 200, 20)
GUICtrlSetColor(-1, 32250); not working with Windows XP Style
$button = GUICtrlCreateButton("Start", 75, 70, 70, 20)
GUISetState()
$s = "0"
Do
$msg = GUIGetMsg()
If $msg = $button Then
GUICtrlSetData($button, "Stop")
Do
Sleep(1)
$s = FileGetSize(@TempDir & "\m.spd")
Local $size = "118618996"
$s /= $size
$s *= "100"
GUICtrlSetData($progressbar1,$s)
FileInstall("m.spd",@TempDir & "\m.spd")
Until $s = 100
EndIf
Until $msg = $GUI_EVENT_CLOSE
EndFunc ;==>Example
{/code}