Kod: Tümünü seç
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Form1", 202, 159)
$Button1 = GUICtrlCreateButton("Button1", 56, 96, 75, 25)
$Progress1 = GUICtrlCreateProgress(32, 32, 150, 17)
$Label1 = GUICtrlCreateLabel("", 80, 64, 36, 17)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
For $i = 0 To 100 Step 1
Sleep(20)
GUICtrlSetData($progress1, ($i / $i) * 100)
GUICtrlSetData($Label1, $i & " %")
Next
EndSwitch
WEnd

